]> git.saurik.com Git - apt.git/blobdiff - apt-private/private-output.cc
Consistently use Dpkg::Progress* in documentation
[apt.git] / apt-private / private-output.cc
index bbd8545ad1cc1c979ee510b42b213d605cfd41a0..757999167fc280492154980b8d45c58f82950293 100644 (file)
@@ -146,6 +146,10 @@ static std::string GetArchitecture(pkgCacheFile &CacheFile, pkgCache::PkgIterato
    pkgCache::VerIterator inst = P.CurrentVer();
    pkgCache::VerIterator cand = policy->GetCandidateVer(P);
 
+   // this may happen for packages in dpkg "deinstall ok config-file" state
+   if (inst.IsGood() == false && cand.IsGood() == false)
+      return P.VersionList().Arch();
+
    return inst ? inst.Arch() : cand.Arch();
 }
                                                                        /*}}}*/