Skip to content
Snippets Groups Projects
Commit 6e7c6c3f authored by Michael Vogt's avatar Michael Vogt
Browse files

* debian/apt.cron.daily:

  - if the timestamp is too far in the future, delete it
parent 1d3235a8
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -37,6 +37,8 @@ apt (0.7.22) UNRELEASED; urgency=low
[ Michael Vogt ]
* honor the dpkg hold state in AutoInstOk (closes: #64141)
* debian/apt.cron.daily:
- if the timestamp is too far in the future, delete it
[ Julian Andres Klode ]
* apt-pkg/contrib/configuration.cc: Fix a small memory leak in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment