Package: systemd-cron
Version: 1.3.1+ds1-2
$ sudo crontab -u user cron.txt
Traceback (most recent call last):
File "/usr/bin/crontab", line 94, in <module>
action(cron_file, args)
File "/usr/bin/crontab", line 81, in replace
with open(cron_file, 'w'), open(infile, 'r') as out, inp:
NameError: global name 'inp' is not defined
I've attached a layman's patch. It's simply a matter of changing line 81 to
correct syntax.
$ uname -a
Linux vpn 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u1 x86_64 GNU/Linux
I'm using systemd.
--
Hälsningar / Greetings
http://Stefan.Midjich.name
*** /usr/bin/crontab 2016-01-19 19:29:29.898730543 +0100
--- ./crontab 2016-01-19 19:29:09.006736011 +0100
*************** def replace(cron_file, args):
*** 78,84 ****
out.write(sys.stdin.read())
else:
! with open(cron_file, 'w'), open(infile, 'r') as out, inp:
out.write(inp.read())
if __name__ == '__main__':
--- 78,84 ----
out.write(sys.stdin.read())
else:
! with open(cron_file, 'w') as out, open(infile, 'r') as inp:
out.write(inp.read())
if __name__ == '__main__':