]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/packagemanager.cc
add a simple stack handling to be able to delay error handling
[apt.git] / apt-pkg / packagemanager.cc
index eef79cccd381443da9de4a702c4eb555cf9a61ef..49776aac705b505e703e127f3300e1c566134d97 100644 (file)
@@ -602,7 +602,8 @@ bool pkgPackageManager::SmartUnPack(PkgIterator Pkg)
       // configured we don't need to unpack it again…
       PkgIterator const P = Pkg.Group().FindPkg("all");
       if (List->IsFlag(P,pkgOrderList::UnPacked) != true &&
-         List->IsFlag(P,pkgOrderList::Configured) != true) {
+         List->IsFlag(P,pkgOrderList::Configured) != true &&
+         P.State() != pkgCache::PkgIterator::NeedsNothing) {
         if (SmartUnPack(P) == false)
            return false;
       }