]> git.saurik.com Git - apt.git/commitdiff
merged from lp:~donkult/apt/sid
authorMichael Vogt <michael.vogt@ubuntu.com>
Tue, 17 Apr 2012 07:18:34 +0000 (09:18 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Tue, 17 Apr 2012 07:18:34 +0000 (09:18 +0200)
apt-pkg/packagemanager.cc
cmdline/apt-get.cc
debian/changelog

index c62c4d187145019f78c9b93692cdf8170ebd1f57..093999bc243e66da1727838bfaf25a46f31f4200 100644 (file)
@@ -602,7 +602,7 @@ bool pkgPackageManager::SmartUnPack(PkgIterator Pkg, bool const Immediate, int c
       or by the ConfigureAll call at the end of the for loop in OrderInstall. */
    bool Changed = false;
    const unsigned int max_loops = _config->FindI("APT::pkgPackageManager::MaxLoopCount", 500);
-   unsigned int i;
+   unsigned int i = 0;
    do 
    {
       Changed = false;
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;
 }
                                                                        /*}}}*/
index 7cfa37e523312c6d35a1367de0b0c166a343eed2..10f515a708a7b935c139e9952e0e54e7f6a53934 100644 (file)
@@ -1,3 +1,15 @@
+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)
+  * apt-pkg/packagemanager.cc:
+    - init counter in SmartConfigure so that the loop-breaker isn't
+      triggered at random… (Closes: #669060)
+
+ -- David Kalnischkies <kalnischkies@gmail.com>  Mon, 16 Apr 2012 23:15:22 +0200
+
 apt (0.9.0) unstable; urgency=low
 
   * upload to debian/unstable