* apt-pkg/packagemanager.cc:
authorDavid Kalnischkies <kalnischkies@gmail.com>
Wed, 18 Jul 2012 11:48:46 +0000 (13:48 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Wed, 18 Jul 2012 11:48:46 +0000 (13:48 +0200)
  - do not segfault if nothing can be configured to statisfy
    a pre-depends (e.g. in a pre-depends loop) (Closes: #681958)

apt-pkg/packagemanager.cc
debian/changelog

index 46fc499..b93bf6a 100644 (file)
@@ -643,7 +643,7 @@ bool pkgPackageManager::SmartUnPack(PkgIterator Pkg, bool const Immediate, int c
            }
 
            // Look for something that could be configured.
-           for (DepIterator Cur = Start; Bad == true; ++Cur)
+           for (DepIterator Cur = Start; Bad == true && Cur.end() == false; ++Cur)
            {
               SPtrArray<Version *> VList = Cur.AllTargets();
               for (Version **I = VList; *I != 0; ++I)
index c33b9d4..d3f599e 100644 (file)
@@ -10,6 +10,9 @@ apt (0.9.7.3) UNRELEASED; urgency=low
   * apt-pkg/cacheset.cc:
     - handle :all and :native correctly as architectures again
       in the commandline parsing (regression in 0.9.7)
+  * apt-pkg/packagemanager.cc:
+    - do not segfault if nothing can be configured to statisfy
+      a pre-depends (e.g. in a pre-depends loop) (Closes: #681958)
 
  -- David Kalnischkies <kalnischkies@gmail.com>  Wed, 18 Jul 2012 11:45:57 +0200