]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-get.cc
* edsp/edspsystem.cc:
[apt.git] / cmdline / apt-get.cc
index 4e6cc32de9d6d11773dbeeaa9fbee47122ebbfce..dd9313bffd6d90371b56a4e46728a3de73cbd092 100644 (file)
@@ -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;
 }
                                                                        /*}}}*/