diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2012-07-09 08:24:46 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2012-07-09 08:24:46 +0200 |
commit | e77aedb863e2a9eebb5aa9628121d350c029527d (patch) | |
tree | dc314b4157aba3fa9a67c2d2e9c56a410ded4ec7 /apt-pkg | |
parent | f52074eed3849ae7c7ebae3c3a118cd4ee094b32 (diff) | |
parent | 25792e39cf2218f1c9bae74217e4f91682e14837 (diff) |
merged from lp:~donkult/apt/sid
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/clean.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apt-pkg/clean.cc b/apt-pkg/clean.cc index 9c167eaa5..eae419e34 100644 --- a/apt-pkg/clean.cc +++ b/apt-pkg/clean.cc @@ -81,12 +81,13 @@ bool pkgArchiveCleaner::Go(std::string Dir,pkgCache &Cache) if (*I != '.') continue; std::string const Arch = DeQuoteString(std::string(Start,I-Start)); - + + // ignore packages of unconfigured architectures if (APT::Configuration::checkArchitecture(Arch) == false) continue; // Lookup the package - pkgCache::PkgIterator P = Cache.FindPkg(Pkg); + pkgCache::PkgIterator P = Cache.FindPkg(Pkg, Arch); if (P.end() != true) { pkgCache::VerIterator V = P.VersionList(); |