summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Zimmerman <matt.zimmerman@canonical.com>2004-11-14 02:15:12 +0000
committerMatt Zimmerman <matt.zimmerman@canonical.com>2004-11-14 02:15:12 +0000
commit10946ddce73adb492bf71503bc767c370a043eef (patch)
tree8c7eda7df2cee3cdb56e8c45f6fec4b32470f657
parent722a6c8a3f425e36271e154076bc3587bf66876e (diff)
Handle interval=0 correctly in apt.cron.daily:check_stamp
-rw-r--r--debian/apt.cron.daily4
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