=== modified file 'apt-pkg/packagemanager.cc'
--- apt-pkg/packagemanager.cc	2012-04-12 13:13:08 +0000
+++ apt-pkg/packagemanager.cc	2012-04-16 21:04:29 +0000
@@ -602,7 +602,7 @@
       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;

=== modified file 'debian/changelog'
--- debian/changelog	2012-04-16 20:56:46 +0000
+++ debian/changelog	2012-04-16 21:17:12 +0000
@@ -4,8 +4,11 @@
   * 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
 

