summaryrefslogtreecommitdiff
path: root/debian/apt.cron.daily
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2009-12-11 00:44:32 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2009-12-11 00:44:32 +0100
commit879cbcc8685781ba6f89a9123acd50c794490f2c (patch)
treef687573babccc58cd89c66a0140edad65539a813 /debian/apt.cron.daily
parentd746ad6e049c472339003396f934e8ee93a0a378 (diff)
check cache size even if we do nothing else otherwise in apt.cron.daily,
thanks Francesco Poli for patch(s) and patience! (Closes: #459344)
Diffstat (limited to 'debian/apt.cron.daily')
-rw-r--r--debian/apt.cron.daily6
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/apt.cron.daily b/debian/apt.cron.daily
index b6099ee75..e59b05ee4 100644
--- a/debian/apt.cron.daily
+++ b/debian/apt.cron.daily
@@ -401,12 +401,16 @@ eval $(apt-config shell BackupArchiveInterval APT::Periodic::BackupArchiveInterv
Debdelta=1
eval $(apt-config shell Debdelta APT::Periodic::Download-Upgradeable-Packages-Debdelta)
-# check if we actually have to do anything
+# check if we actually have to do anything that requires locking the cache
if [ $UpdateInterval -eq 0 ] &&
[ $DownloadUpgradeableInterval -eq 0 ] &&
[ $UnattendedUpgradeInterval -eq 0 ] &&
[ $BackupArchiveInterval -eq 0 ] &&
[ $AutocleanInterval -eq 0 ]; then
+
+ # check cache size
+ check_size_constraints
+
exit 0
fi