summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2008-05-02 13:56:26 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2008-05-02 13:56:26 -0300
commite88d983a7463dd8d7e6d8f8ea87b5bed6dedf8a9 (patch)
treed12cd11566e03f6919d6719435cd9eff122af860
parentcc615257a94918b737cb45f7e698b465e096a668 (diff)
Add support for --no-download on apt-get update. Closes: #478517
-rw-r--r--cmdline/apt-get.cc5
-rw-r--r--debian/changelog3
2 files changed, 6 insertions, 2 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index 92a263e50..104baba8a 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -1374,8 +1374,9 @@ bool DoUpdate(CommandLine &CmdL)
// 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 --git a/debian/changelog b/debian/changelog
index 7144a3ad1..3966da543 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,9 @@ apt (0.7.13) UNRELEASED; urgency=low
* Add timeout support for https. Thanks to Andrew Martens
<andrew.martens@strangeloopnetworks.com> for the patch.
+ [ Goswin von Brederlow ]
+ * Add support for --no-download on apt-get update. Closes: #478517
+
[ Program translations ]
- Vietnamese updated. Closes: #479008