summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-08-06 12:48:41 +0200
committerJulian Andres Klode <jak@debian.org>2009-08-06 12:48:41 +0200
commit6b519e4227f41980b6de18a882808df92f1e36f1 (patch)
treec09fecc94140c0e7bd18a1e5f675e9ee0749909b /debian
parent17443d48b60b1abad4d16a2b6a3e3b3199bfa7d3 (diff)
debian/apt.cron.daily: Support using debdelta to download packages (Closes: #532079)
Diffstat (limited to 'debian')
-rw-r--r--debian/apt.cron.daily11
-rw-r--r--debian/changelog1
2 files changed, 11 insertions, 1 deletions
diff --git a/debian/apt.cron.daily b/debian/apt.cron.daily
index 3973e63b5..a09eeaca8 100644
--- a/debian/apt.cron.daily
+++ b/debian/apt.cron.daily
@@ -49,7 +49,10 @@
#
# APT::Periodic::Download-Upgradeable-Packages "0";
# - Do "apt-get upgrade --download-only" every n-days (0=disable)
-#
+#
+# APT::Periodic::Download-Upgradeable-Packages-Debdelta "1";
+# - Use debdelta-upgrade to download updates if available (0=disable)
+#
# APT::Periodic::Unattended-Upgrade "0";
# - Run the "unattended-upgrade" security upgrade script
# every n-days (0=disabled)
@@ -395,6 +398,9 @@ eval $(apt-config shell AutocleanInterval APT::Periodic::AutocleanInterval)
BackupArchiveInterval=0
eval $(apt-config shell BackupArchiveInterval APT::Periodic::BackupArchiveInterval)
+Debdelta=1
+eval $(apt-config shell Debdelta APT::Periodic::Download-Upgradeable-Packages-Debdelta)
+
# check if we actually have to do anything
if [ $UpdateInterval -eq 0 ] &&
[ $DownloadUpgradeableInterval -eq 0 ] &&
@@ -438,6 +444,9 @@ fi
# download all upgradeable packages (if it is requested)
DOWNLOAD_UPGRADEABLE_STAMP=/var/lib/apt/periodic/download-upgradeable-stamp
if [ $UPDATED -eq 1 ] && check_stamp $DOWNLOAD_UPGRADEABLE_STAMP $DownloadUpgradeableInterval; then
+ if [ $Debdelta -eq 1 ]; then
+ debdelta-upgrade >/dev/null 2>&1 || true
+ fi
if eval apt-get $XAPTOPT -y -d dist-upgrade $XSTDERR; then
update_stamp $DOWNLOAD_UPGRADEABLE_STAMP
debug_echo "download upgradable (success)"
diff --git a/debian/changelog b/debian/changelog
index 21772e5df..2d3446d48 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ apt (0.7.22.2) unstable; urgency=low
* debian/apt.cron.daily:
- Make sure that VERBOSE is always set (Closes: #539366)
- Script can be disabled by APT::Periodic::Enable=0 (Closes: #485476)
+ - Support using debdelta to download packages (Closes: #532079)
-- Julian Andres Klode <jak@debian.org> Thu, 06 Aug 2009 12:17:19 +0200