Handle interval=0 correctly in apt.cron.daily:check_stamp
authorMatt Zimmerman <matt.zimmerman@canonical.com>
Sun, 14 Nov 2004 02:15:12 +0000 (02:15 +0000)
committerMatt Zimmerman <matt.zimmerman@canonical.com>
Sun, 14 Nov 2004 02:15:12 +0000 (02:15 +0000)
debian/apt.cron.daily

index f163f9f..bb6c015 100644 (file)
@@ -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