summaryrefslogtreecommitdiff
path: root/debian/apt.cron.daily
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-12-14 09:22:29 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2009-12-14 09:22:29 +0100
commit4407a02f4ead0c8c7906ba2fa96021890237f7d9 (patch)
tree6fa68d5510b537a28cdb677298a8f4e8d1fb42a6 /debian/apt.cron.daily
parentd4d9f5399244f5c7e698cc4860d1d9ab8f63992f (diff)
parent5d70f74c114450f001d415eea101610eedaee05b (diff)
merged patches from david (many thanks)
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