diff options
author | Michael Vogt <mvo@debian.org> | 2004-11-26 09:47:13 +0000 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2004-11-26 09:47:13 +0000 |
commit | 759ef60bae33fd38079d298287c107ec83821634 (patch) | |
tree | 5cbf316481dd5ac2a1a13891a7a1503cf36479df /debian/apt.cron.daily | |
parent | df96f2e54f977e9c3d7531a97a0b84788ac3f44c (diff) | |
parent | 51ef8263ad8c5dc6c11d9a6cf7922e01567d56da (diff) |
brought tree up-to-date with matt
Patches applied:
* apt@packages.debian.org/apt--main--0--patch-15
Merge changes from Hoary (0.5.30,0.5.30ubuntu2]
* apt@packages.debian.org/apt--main--0--patch-16
Remove apt-utils->bzip2 dependency
* apt@packages.debian.org/apt--main--0--patch-17
Fix apt_preferences(5) example to match text
* apt@packages.debian.org/apt--main--0--patch-18
Fix permissions
* apt@packages.debian.org/apt--main--0--patch-19
Add APT::Periodic::Autoclean setting
* apt@packages.debian.org/apt--main--0--patch-20
Finalize 0.5.31
* apt@packages.debian.org/apt--main--0--patch-21
Open 0.5.32
* apt@packages.debian.org/apt--main--0--patch-22
Call setlocale and bindtextdomain in the http method
* apt@packages.debian.org/apt--main--0--patch-23
Fix error in patch-22
* apt@packages.debian.org/apt--main--0--patch-24
Temporarily finalize 0.5.32 to resolve a conflict with apt--authentication--0
* apt@packages.debian.org/apt--main--0--patch-25
Un-finalize 0.5.32
* apt@packages.debian.org/apt--main--0--patch-26
Update AUTHORS to reflect reality
* apt@packages.debian.org/apt--main--0--patch-27
Fix spelling
Diffstat (limited to 'debian/apt.cron.daily')
-rw-r--r-- | debian/apt.cron.daily | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/debian/apt.cron.daily b/debian/apt.cron.daily index bb6c0151e..17fe8fb78 100644 --- a/debian/apt.cron.daily +++ b/debian/apt.cron.daily @@ -38,8 +38,9 @@ update_stamp() UpdateInterval=0 DownloadUpgradeableInterval=0 -RES=`apt-config shell UpdateInterval APT::Periodic::Update-Package-Lists DownloadUpgradeableInterval APT::Periodic::Download-Upgradeable-Packages` -eval $RES +eval $(apt-config shell UpdateInterval APT::Periodic::Update-Package-Lists DownloadUpgradeableInterval APT::Periodic::Download-Upgradeable-Packages) +AutocleanInterval=$DownloadUpgradeableInterval +eval $(apt-config shell AutocleanInterval APT::Periodic::Autoclean) # laptop check, on_ac_power returns: # 0 (true) System is on mains power @@ -68,3 +69,9 @@ if check_stamp $DOWNLOAD_UPGRADEABLE_STAMP $DownloadUpgradeableInterval; then apt-get -qq -d dist-upgrade 2>/dev/null update_stamp $DOWNLOAD_UPGRADEABLE_STAMP fi + +AUTOCLEAN_STAMP=/var/lib/apt/periodic/autoclean-stamp +if check_stamp $AUTOCLEAN_STAMP $AutocleanInterval; then + apt-get -qq autoclean + update_stamp $AUTOCLEAN_STAMP +fi |