]> git.saurik.com Git - apt.git/commitdiff
Add support for --no-download on apt-get update. Closes: #478517
authorOtavio Salvador <otavio@ossystems.com.br>
Fri, 2 May 2008 16:56:26 +0000 (13:56 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 2 May 2008 16:56:26 +0000 (13:56 -0300)
cmdline/apt-get.cc
debian/changelog

index 92a263e502c26914976d46c6975c7ffad0676394..104baba8a000d241b22dd90d717852635cfb41db 100644 (file)
@@ -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;
index 7144a3ad19c3aca6703e89859dd6ee7708bcbcc3..3966da5439c8c02b9175d8aaf31d00b8b220f91f 100644 (file)
@@ -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