diff options
author | Matt Zimmerman <matt.zimmerman@canonical.com> | 2004-11-14 02:15:12 +0000 |
---|---|---|
committer | Matt Zimmerman <matt.zimmerman@canonical.com> | 2004-11-14 02:15:12 +0000 |
commit | 10946ddce73adb492bf71503bc767c370a043eef (patch) | |
tree | 8c7eda7df2cee3cdb56e8c45f6fec4b32470f657 /debian/apt.cron.daily | |
parent | 722a6c8a3f425e36271e154076bc3587bf66876e (diff) |
Handle interval=0 correctly in apt.cron.daily:check_stamp
Diffstat (limited to 'debian/apt.cron.daily')
-rw-r--r-- | debian/apt.cron.daily | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/debian/apt.cron.daily b/debian/apt.cron.daily index f163f9f36..bb6c0151e 100644 --- a/debian/apt.cron.daily +++ b/debian/apt.cron.daily @@ -8,6 +8,10 @@ check_stamp() stamp="$1" interval="$2" + if [ $interval -eq 0 ]; then + return 1 + fi + if [ ! -f $stamp ]; then return 0 fi |