diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2007-10-12 18:03:18 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2007-10-12 18:03:18 +0200 |
commit | e15dcd38afd712c1c935339e533c72cd8f0f70bb (patch) | |
tree | 661a86ffcd89fa44b2e234aaf3398f2f9dd0e8b8 /debian | |
parent | d6039f9e73d440f1e49ac880f5017cb6aaf4546e (diff) |
* debian/apt.cron.daily:
- only run the cron job if apt-get check succeeds (LP: #131719)
Diffstat (limited to 'debian')
-rw-r--r-- | debian/apt.cron.daily | 6 | ||||
-rw-r--r-- | debian/changelog | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/debian/apt.cron.daily b/debian/apt.cron.daily index 34d6b164f..5524c16ee 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 d43fb9861..e1f037350 100644 --- a/debian/changelog +++ b/debian/changelog @@ -40,6 +40,8 @@ apt (0.7.7) UNRELEASED; urgency=low * cmdline/apt-mark: - Fix chmoding after have renamed the extended-states file (LP: #140019) (thanks to Laurent Bigonville) + * debian/apt.cron.daily: + - only run the cron job if apt-get check succeeds (LP: #131719) [ Program translations ] - French updated |