瀏覽代碼

* 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 年之前
父節點
當前提交
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