Bug#478517: Patch update to current sid apt
Package: apt
Followup-For: Bug #478517
I updated the patch top apt 0.7.12. The code downloading has moved
into another function so only the function call needs to be skipped
now.
diffstat no-download.patch
cmdline/apt-get.cc | 5 +++--
debian/changelog | 7 +++++++
2 files changed, 10 insertions(+), 2 deletions(-)
MfG
Goswin
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.22.2-mrvn
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages apt depends on:
ii debian-archive-keyring 2008.04.16+nmu1 GnuPG archive keys of the Debian a
ii libc6 2.7-10 GNU C Library: Shared libraries
ii libgcc1 1:4.3.0-3 GCC support library
ii libstdc++6 4.3.0-3 The GNU Standard C++ Library v3
apt recommends no packages.
-- no debconf information
diff -Nru apt-0.7.12/cmdline/apt-get.cc apt-0.7.12+nmu1/cmdline/apt-get.cc
--- apt-0.7.12/cmdline/apt-get.cc 2008-04-26 20:36:21.000000000 +0200
+++ apt-0.7.12+nmu1/cmdline/apt-get.cc 2008-04-29 21:18:04.000000000 +0200
@@ -1374,8 +1374,9 @@
// do the work
CacheFile Cache;
- bool res = ListUpdate(Stat, List);
-
+ if (_config->FindB("APT::Get::Download",true) == true)
+ ListUpdate(Stat, List);
+
// Rebuild the cache.
if (Cache.BuildCaches() == false)
return false;
diff -Nru apt-0.7.12/debian/changelog apt-0.7.12+nmu1/debian/changelog
--- apt-0.7.12/debian/changelog 2008-04-27 20:27:31.000000000 +0200
+++ apt-0.7.12+nmu1/debian/changelog 2008-04-29 20:44:57.000000000 +0200
@@ -1,3 +1,10 @@
+apt (0.7.12+nmu1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Add support for --no-download on apt-get update
+
+ -- Goswin von Brederlow <goswin-v-b@web.de> Tue, 29 Apr 2008 20:44:32 +0200
+
apt (0.7.12) unstable; urgency=low
[ Michael Vogt ]
Reply to: