[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#532079: marked as done (apt: support for using debdelta to download packages in the apt cron job)



Your message dated Thu, 06 Aug 2009 13:58:37 +0000
with message-id <E1MZ3UL-0000BE-4W@ries.debian.org>
and subject line Bug#532079: fixed in apt 0.7.22.2
has caused the Debian Bug report #532079,
regarding apt: support for using debdelta to download packages in the apt cron job
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
532079: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=532079
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apt
Version: 0.7.21
Severity: wishlist
Tags: patch

Please add the below patch that adds configurable support for using
debdelta to download packages in the apt cron job. It doesn't disrupt
the cron job when debdelta is not installed and when it is installed, it
defaults to on but can be turned off with a configuration option.
debdelta uses binary diffs to reduce download sizes and produces
bit-identical .deb files. People use it as a tradeoff between network
and CPU usage. The cron job will use apt-get as usual after debdelta so
that if debdelta fails or if it doesn't have the right files available
then apt will download them as usual. debdelta failures are ignored,
since they can happen occasionally. I didn't include a patch to the apt
configuration documentation, just to the cron job, you can copy the doc
line from the cron job to the docs though.

--- /etc/cron.daily/apt.orig
+++ /etc/cron.daily/apt
@@ -11,6 +11,9 @@
 #  "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::AutocleanInterval"
 #  - Do "apt-get autoclean" every n-days (0=disable)
 #
@@ -194,6 +197,8 @@
 eval $(apt-config shell AutocleanInterval APT::Periodic::AutocleanInterval)
 UnattendedUpgradeInterval=0
 eval $(apt-config shell UnattendedUpgradeInterval APT::Periodic::Unattended-Upgrade)
+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 ] &&
@@ -243,6 +248,9 @@
 
 DOWNLOAD_UPGRADEABLE_STAMP=/var/lib/apt/periodic/download-upgradeable-stamp
 if check_stamp $DOWNLOAD_UPGRADEABLE_STAMP $DownloadUpgradeableInterval; then
+    if [ $Debdelta -eq 1 ] then ;
+        debdelta-upgrade >/dev/null 2>&1 || true
+    fi
     apt-get -qq -d dist-upgrade 2>/dev/null
     update_stamp $DOWNLOAD_UPGRADEABLE_STAMP
 fi

-- 
bye,
pabs

http://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---
--- Begin Message ---
Source: apt
Source-Version: 0.7.22.2

We believe that the bug you reported is fixed in the latest version of
apt, which is due to be installed in the Debian FTP archive:

apt-doc_0.7.22.2_all.deb
  to pool/main/a/apt/apt-doc_0.7.22.2_all.deb
apt-transport-https_0.7.22.2_amd64.deb
  to pool/main/a/apt/apt-transport-https_0.7.22.2_amd64.deb
apt-utils_0.7.22.2_amd64.deb
  to pool/main/a/apt/apt-utils_0.7.22.2_amd64.deb
apt_0.7.22.2.dsc
  to pool/main/a/apt/apt_0.7.22.2.dsc
apt_0.7.22.2.tar.gz
  to pool/main/a/apt/apt_0.7.22.2.tar.gz
apt_0.7.22.2_amd64.deb
  to pool/main/a/apt/apt_0.7.22.2_amd64.deb
libapt-pkg-dev_0.7.22.2_amd64.deb
  to pool/main/a/apt/libapt-pkg-dev_0.7.22.2_amd64.deb
libapt-pkg-doc_0.7.22.2_all.deb
  to pool/main/a/apt/libapt-pkg-doc_0.7.22.2_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 532079@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Julian Andres Klode <jak@debian.org> (supplier of updated apt package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Format: 1.8
Date: Thu, 06 Aug 2009 15:36:03 +0200
Source: apt
Binary: apt apt-doc libapt-pkg-dev libapt-pkg-doc apt-utils apt-transport-https
Architecture: source all amd64
Version: 0.7.22.2
Distribution: unstable
Urgency: low
Maintainer: APT Development Team <deity@lists.debian.org>
Changed-By: Julian Andres Klode <jak@debian.org>
Description: 
 apt        - Advanced front-end for dpkg
 apt-doc    - Documentation for APT
 apt-transport-https - APT https transport
 apt-utils  - APT utility programs
 libapt-pkg-dev - Development files for APT's libapt-pkg and libapt-inst
 libapt-pkg-doc - Documentation for APT development
Closes: 485476 532079 539366
Changes: 
 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)
Checksums-Sha1: 
 bab58bd0628424d75ead365042fb7476a62a6305 1219 apt_0.7.22.2.dsc
 79ccf30ae2194562c6d108a90e2bb8f5a8838b2a 2123851 apt_0.7.22.2.tar.gz
 9541035da347e5f5477cd55223ac0bdfad1e4d1c 104088 apt-doc_0.7.22.2_all.deb
 904d449e0d59983ef469c72481e4c74c265d2fd3 126342 libapt-pkg-doc_0.7.22.2_all.deb
 31e61ed37c7df90e99b55465715e2dcef1994366 1636588 apt_0.7.22.2_amd64.deb
 de0db3ad9930f81617d66c66ac96ec7ffe724f1a 112878 libapt-pkg-dev_0.7.22.2_amd64.deb
 389b291c088c0e280c38e7459ea88f74b61571d3 194486 apt-utils_0.7.22.2_amd64.deb
 08facfcde29e11768fc9d91f822f1325da2ceec9 62042 apt-transport-https_0.7.22.2_amd64.deb
Checksums-Sha256: 
 49dfbee58960dba062f908c6ddc726e22c04e22f49f199559fe8fcbedb341a7c 1219 apt_0.7.22.2.dsc
 c4e304cdb6956e3336fd85dbac5199a4bf80b51414ce34478089156027072a14 2123851 apt_0.7.22.2.tar.gz
 814bd19a94564dfbdbeb9eccdb6b5ad8152b228d5d41c6c0f87bc411004c573e 104088 apt-doc_0.7.22.2_all.deb
 6f5f6bcbcadc9d7c04db945c504664185a4d3ecee5a9aff6b2d30a4337505621 126342 libapt-pkg-doc_0.7.22.2_all.deb
 d888d330141b580224b733d04570db4a556135b455c06bd72b6bb2eebd31f12b 1636588 apt_0.7.22.2_amd64.deb
 fdee15afed92e9e0af687d3b9c2c922384c6bc6edfb2db8d05332c5e44c24398 112878 libapt-pkg-dev_0.7.22.2_amd64.deb
 ebea196864d1a9ffcdb3a5d5c4ea4b53fcd204554cc77e64d73da3be55214cfd 194486 apt-utils_0.7.22.2_amd64.deb
 cfe121e4c57ab68374e6ff3d6896d57e2c1d822b19898305c11fffc651bd0d27 62042 apt-transport-https_0.7.22.2_amd64.deb
Files: 
 02a5289e4639102fbc38413623736199 1219 admin important apt_0.7.22.2.dsc
 50f1f350a1e6b139a333e68c8e7dffcf 2123851 admin important apt_0.7.22.2.tar.gz
 a148696d28e5003203a2d558b3370f8a 104088 doc optional apt-doc_0.7.22.2_all.deb
 b864ce328d441981bfa524e436043700 126342 doc optional libapt-pkg-doc_0.7.22.2_all.deb
 3a27512adfc94c44625cdada77f506ca 1636588 admin important apt_0.7.22.2_amd64.deb
 68951d6a0f24992f91040cced8123bca 112878 libdevel optional libapt-pkg-dev_0.7.22.2_amd64.deb
 7c6e64a5f999c8ba0c64bbe79f197a92 194486 admin important apt-utils_0.7.22.2_amd64.deb
 e27ae9a270e79c7afffd20a84af02ea9 62042 admin optional apt-transport-https_0.7.22.2_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEAREDAAYFAkp63mMACgkQrCpf/gCCPsLpTQCdFOLSencYztQrR7i4xVUhEiAE
oZEAoJjwiYK532iMUffbQ4pDVnnj0Xdr
=XRGl
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: