diff options
author | Michael Vogt <egon@bottom> | 2007-10-15 21:28:47 +0200 |
---|---|---|
committer | Michael Vogt <egon@bottom> | 2007-10-15 21:28:47 +0200 |
commit | 312764930ff995ea9e7239b170af387f10d16a11 (patch) | |
tree | 8a665fec46adfb0a85200e3cb34210d5a06e314d /debian/apt.cron.daily | |
parent | 6edbc051f4cc97ec24b0b95791aa3cdc2ade3aae (diff) | |
parent | 477b5d6cacb53e868ec182330ffdcc3678a98560 (diff) |
* merge from apt--mvo (fix resource leak, run apt.cron.daily only if
apt-get check is successfull)
Diffstat (limited to 'debian/apt.cron.daily')
-rw-r--r-- | debian/apt.cron.daily | 6 |
1 files changed, 6 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 |