From: Michael Vogt Date: Fri, 12 Oct 2007 16:02:21 +0000 (+0200) Subject: * debian/apt.cron.daily: X-Git-Tag: 0.7.24ubuntu1~127 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/80c965368a08f521c648f5398e954d164d859baa * debian/apt.cron.daily: - only run the cron job if apt-get check succeeds (LP: #131719) --- diff --git a/debian/apt.cron.daily b/debian/apt.cron.daily index 48714ec15..4f7eff47b 100644 --- a/debian/apt.cron.daily +++ b/debian/apt.cron.daily @@ -170,6 +170,12 @@ if which on_ac_power >/dev/null; then fi fi +# check if we can lock the cache and if the cache is clean +if ! apt-get check -q -q 2>/dev/null; then + exit 1 +fi + + UPDATE_STAMP=/var/lib/apt/periodic/update-stamp if check_stamp $UPDATE_STAMP $UpdateInterval; then if apt-get -qq update 2>/dev/null; then diff --git a/debian/changelog b/debian/changelog index 7213c6773..79efaf1a6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +apt (0.7.6ubuntu14) gutsy; urgency=low + + * debian/apt.cron.daily: + - only run the cron job if apt-get check succeeds (LP: #131719) + + -- Michael Vogt Fri, 12 Oct 2007 17:56:22 +0200 + apt (0.7.6ubuntu13) gutsy; urgency=low * apt-pkg/deb/dpkgpm.cc: