summaryrefslogtreecommitdiff
path: root/cmdline/apt-get.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cmdline/apt-get.cc')
-rw-r--r--cmdline/apt-get.cc5
1 files changed, 3 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;