Переглянути джерело

Add support for --no-download on apt-get update. Closes: #478517

Otavio Salvador 18 роки тому
батько
коміт
e88d983a74
2 змінених файлів з 6 додано та 2 видалено
  1. 3 2
      cmdline/apt-get.cc
  2. 3 0
      debian/changelog

+ 3 - 2
cmdline/apt-get.cc

@@ -1374,8 +1374,9 @@ bool DoUpdate(CommandLine &CmdL)
 
 
    // do the work
    // do the work
    CacheFile Cache;
    CacheFile Cache;
-   bool res = ListUpdate(Stat, List);
-     
+   if (_config->FindB("APT::Get::Download",true) == true)
+       ListUpdate(Stat, List);
+
    // Rebuild the cache.   
    // Rebuild the cache.   
    if (Cache.BuildCaches() == false)
    if (Cache.BuildCaches() == false)
       return false;
       return false;

+ 3 - 0
debian/changelog

@@ -7,6 +7,9 @@ apt (0.7.13) UNRELEASED; urgency=low
   * Add timeout support for https. Thanks to Andrew Martens
   * Add timeout support for https. Thanks to Andrew Martens
     <andrew.martens@strangeloopnetworks.com> for the patch.
     <andrew.martens@strangeloopnetworks.com> for the patch.
 
 
+  [ Goswin von Brederlow ]
+  * Add support for --no-download on apt-get update. Closes: #478517
+  
   [ Program translations ]
   [ Program translations ]
     - Vietnamese updated. Closes: #479008
     - Vietnamese updated. Closes: #479008