Просмотр исходного кода

* cmdline/apt-get.cc:
- if pkgCacheFile::Generate is disabled in 'update' don't
remove the caches (and don't try to open them)

David Kalnischkies лет назад: 14
Родитель
Сommit
872ed75fec
2 измененных файлов с 16 добавлено и 4 удалено
  1. 7 4
      cmdline/apt-get.cc
  2. 9 0
      debian/changelog

+ 7 - 4
cmdline/apt-get.cc

@@ -1679,10 +1679,13 @@ bool DoUpdate(CommandLine &CmdL)
        ListUpdate(Stat, *List);
 
    // Rebuild the cache.
-   pkgCacheFile::RemoveCaches();
-   if (Cache.BuildCaches() == false)
-      return false;
-   
+   if (_config->FindB("pkgCacheFile::Generate", true) == true)
+   {
+      pkgCacheFile::RemoveCaches();
+      if (Cache.BuildCaches() == false)
+	 return false;
+   }
+
    return true;
 }
 									/*}}}*/

+ 9 - 0
debian/changelog

@@ -1,3 +1,12 @@
+apt (0.9.1) unstable; urgency=low
+
+  [ David Kalnischkies ]
+  * cmdline/apt-get.cc:
+    - if pkgCacheFile::Generate is disabled in 'update' don't
+      remove the caches (and don't try to open them)
+
+ -- David Kalnischkies <kalnischkies@gmail.com>  Mon, 16 Apr 2012 22:56:31 +0200
+
 apt (0.9.0) unstable; urgency=low
 
   * upload to debian/unstable