diff --git a/apt-pkg/packagemanager.cc b/apt-pkg/packagemanager.cc
index 393f836..57d4b5a 100644
--- a/apt-pkg/packagemanager.cc
+++ b/apt-pkg/packagemanager.cc
@@ -406,6 +406,12 @@ bool pkgPackageManager::SmartConfigure(PkgIterator Pkg, int
if (Cache[DepPkg].InstallVer != *I || List->IsNow(DepPkg) == fals continue;
+ // only packages that are in the unpacked state may need
+ // configure so ignore anything that is not currently
+ // unpacked
+ if (List->IsFlag(DepPkg,pkgOrderList::UnPacked) == false)
+ continue;
+
if (PkgLoop == true)
{ if (Debug)
---
This diff works for me:
diff --git a/apt-pkg/ packagemanager. cc b/apt-pkg/ packagemanager. cc packagemanager. cc packagemanager. cc er::SmartConfig ure(PkgIterator Pkg, int DepPkg] .InstallVer != *I || List->IsNow(DepPkg) == fals
continue;
index 393f836..57d4b5a 100644
--- a/apt-pkg/
+++ b/apt-pkg/
@@ -406,6 +406,12 @@ bool pkgPackageManag
if (Cache[
+ // only packages that are in the unpacked state may need IsFlag( DepPkg, pkgOrderList: :UnPacked) == false)
if (Debug)
+ // configure so ignore anything that is not currently
+ // unpacked
+ if (List->
+ continue;
+
if (PkgLoop == true)
{
---