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

* apt-pkg/packagemanager.cc:
- init counter in SmartConfigure so that the loop-breaker isn't
triggered at random… (Closes: #669060)

David Kalnischkies лет назад: 14
Родитель
Сommit
5ab7b53b09
2 измененных файлов с 5 добавлено и 2 удалено
  1. 1 1
      apt-pkg/packagemanager.cc
  2. 4 1
      debian/changelog

+ 1 - 1
apt-pkg/packagemanager.cc

@@ -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;

+ 4 - 1
debian/changelog

@@ -4,8 +4,11 @@ apt (0.9.1) unstable; urgency=low
   * 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 22:56:31 +0200
+ -- David Kalnischkies <kalnischkies@gmail.com>  Mon, 16 Apr 2012 23:15:22 +0200
 
 apt (0.9.0) unstable; urgency=low