summaryrefslogtreecommitdiff
path: root/debian/apt.cron.daily
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2009-07-15 16:45:49 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2009-07-15 16:45:49 +0200
commitef1dff93202fa61e0b8cda761906bbca31e217bc (patch)
tree860a9c6462a2ea9ef09c01de9a10ee19a4944c78 /debian/apt.cron.daily
parent13eb93fcb6a03afd8fc05fa2b4c60046473e8507 (diff)
parent6e7c6c3f58193fd5db3d9d598ac65a1571522a58 (diff)
merge with lp:~mvo/apt/debian-sid
Diffstat (limited to 'debian/apt.cron.daily')
-rw-r--r--debian/apt.cron.daily7
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/apt.cron.daily b/debian/apt.cron.daily
index 5c5ca88c7..b40bb2c30 100644
--- a/debian/apt.cron.daily
+++ b/debian/apt.cron.daily
@@ -76,6 +76,13 @@ check_stamp()
#echo "stampfile: $1"
#echo "interval=$interval, now=$now, stamp=$stamp, delta=$delta"
+ # remove timestamps a day (or more) in the future and force re-check
+ if [ $stamp -gt $(($now+86400)) ]; then
+ echo "WARNING: file $stamp_file has a timestamp in the future: $stamp"
+ rm -f "$stamp_file"
+ return 0
+ fi
+
if [ $delta -ge $interval ]; then
return 0
fi