]> git.saurik.com Git - apt.git/commitdiff
* cherry pick r2222 from
authorMichael Vogt <michael.vogt@ubuntu.com>
Tue, 13 Mar 2012 12:37:34 +0000 (13:37 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Tue, 13 Mar 2012 12:37:34 +0000 (13:37 +0100)
  http://bzr.debian.org/bzr/bzr/apt/apt/debian-experimental2/:
  * apt-pkg/packagemanager.cc:
  - fix bug in predepends handling - ensure that packages that needs
    unpackaging are unpacked before they are configured (LP: #927993)

apt-pkg/packagemanager.cc
debian/changelog

index a370f15a3868a04e4018948e1d39dd498b36b0b2..701b64af1d9395ec278e17c6625f01f34fc96137 100644 (file)
@@ -611,10 +611,19 @@ bool pkgPackageManager::SmartUnPack(PkgIterator Pkg, bool const Immediate, int c
               continue;
            }
 
-           if (Debug)
-              clog << OutputInDepth(Depth) << "Trying to SmartConfigure " << Pkg.Name() << endl;
-           Bad = !SmartConfigure(Pkg, Depth + 1);
-        }
+            // check if it needs unpack or if if configure is enough
+            if (!List->IsFlag(Pkg,pkgOrderList::UnPacked))
+            {
+               if (Debug)
+                  clog << OutputInDepth(Depth) << "Trying to SmartUnpack " << Pkg.Name() << endl;
+               // SmartUnpack with the ImmediateFlag to ensure its really ready
+               Bad = !SmartUnPack(Pkg, true, Depth + 1);
+            } else {
+               if (Debug)
+                  clog << OutputInDepth(Depth) << "Trying to SmartConfigure " << Pkg.Name() << endl;
+               Bad = !SmartConfigure(Pkg, Depth + 1);
+            }
+         }
 
         /* If this or element did not match then continue on to the
            next or element until a matching element is found */
index 54eeaae97b71e02d1ffb584d87c499dc5d0057e4..821719e15140cf72385e5900a03e76d32cd6ea4f 100644 (file)
@@ -1,3 +1,13 @@
+apt (0.8.16~exp12ubuntu6) UNRELEASED; urgency=low
+
+  * cherry pick r2222 from 
+    http://bzr.debian.org/bzr/bzr/apt/apt/debian-experimental2/:
+    * apt-pkg/packagemanager.cc:
+    - fix bug in predepends handling - ensure that packages that needs
+      unpackaging are unpacked before they are configured (LP: #927993)
+
+ -- Michael Vogt <michael.vogt@ubuntu.com>  Tue, 13 Mar 2012 13:35:36 +0100
+
 apt (0.8.16~exp12ubuntu5) precise; urgency=low
 
   [ Michael Vogt ]