Sfoglia il codice sorgente

check cache size even if we do nothing else otherwise in apt.cron.daily,
thanks Francesco Poli for patch(s) and patience! (Closes: #459344)

David Kalnischkies 16 anni fa
parent
commit
879cbcc868
2 ha cambiato i file con 8 aggiunte e 1 eliminazioni
  1. 5 1
      debian/apt.cron.daily
  2. 3 0
      debian/changelog

+ 5 - 1
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
 

+ 3 - 0
debian/changelog

@@ -101,6 +101,9 @@ apt (0.7.25) UNRELEASED; urgency=low
     - add config setting for User-Agent to the Acquire group,
       thanks Timothy J. Miller! (Closes: #355782)
     - add https options which default to http ones (Closes: #557085)
+  * debian/apt.cron.daily:
+    - check cache size even if we do nothing else otherwise, thanks
+      Francesco Poli for patch(s) and patience! (Closes: #459344)
 
   [ Chris Leick ]
   * doc/ various manpages: