Browse Source

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 years ago
parent
commit
2c4b9b0b9e
2 changed files with 8 additions and 1 deletions
  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
 Debdelta=1
 eval $(apt-config shell Debdelta APT::Periodic::Download-Upgradeable-Packages-Debdelta)
 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 ] &&
 if [ $UpdateInterval -eq 0 ] &&
    [ $DownloadUpgradeableInterval -eq 0 ] &&
    [ $DownloadUpgradeableInterval -eq 0 ] &&
    [ $UnattendedUpgradeInterval -eq 0 ] &&
    [ $UnattendedUpgradeInterval -eq 0 ] &&
    [ $BackupArchiveInterval -eq 0 ] &&
    [ $BackupArchiveInterval -eq 0 ] &&
    [ $AutocleanInterval -eq 0 ]; then
    [ $AutocleanInterval -eq 0 ]; then
+
+    # check cache size
+    check_size_constraints
+
     exit 0
     exit 0
 fi
 fi
 
 

+ 3 - 0
debian/changelog

@@ -85,6 +85,9 @@ apt (0.7.25) UNRELEASED; urgency=low
       Patch by Christoph Goehre, thanks! (Closes: #463260)
       Patch by Christoph Goehre, thanks! (Closes: #463260)
   * apt-pkg/deb/debsrcrecords.cc:
   * apt-pkg/deb/debsrcrecords.cc:
     - use "diff" filetype for .debian.tar.* files (Closes: #554898)
     - use "diff" filetype for .debian.tar.* files (Closes: #554898)
+  * 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 ]
   [ Chris Leick ]
   * doc/ various manpages:
   * doc/ various manpages: