From e88d983a7463dd8d7e6d8f8ea87b5bed6dedf8a9 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Fri, 2 May 2008 13:56:26 -0300 Subject: Add support for --no-download on apt-get update. Closes: #478517 --- cmdline/apt-get.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cmdline') 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; -- cgit v1.2.3