Bug#766348: Does not parse ranges correctly

Alexandre Detiste alexandre.detiste at gmail.com
Wed Oct 22 15:34:29 BST 2014


Thanks,

This patch fix up this problem, but reveal/causes an other one.

For some reason hour=11 is turned in hour=11-23.

This seems to solves it, but need more testing.

        try:
            start, end = range.split('-')
        except ValueError:
-             return slice(mapping(range), None, int(step))
+            return slice(mapping(range), mapping(range)+1 , int(step))

-----------

# Automatically generated by systemd-crontab-generator

[Unit]
Description=[Cron] "55-59 11 * * 1-6 root true"
PartOf=cron.target
RefuseManualStart=true
RefuseManualStop=true
SourcePath=/etc/cron.d/test

[Timer]
Unit=cron-test-root-0.service
OnCalendar=Fri,Mon,Thu,Tue,Wed *-*-* 11,12,13,14,15,16,17,18,19,20,21,22,23:55,56,57,58:00
Persistent=true




More information about the Pkg-systemd-maintainers mailing list