summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2012-07-09 08:24:46 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2012-07-09 08:24:46 +0200
commite77aedb863e2a9eebb5aa9628121d350c029527d (patch)
treedc314b4157aba3fa9a67c2d2e9c56a410ded4ec7 /apt-pkg
parentf52074eed3849ae7c7ebae3c3a118cd4ee094b32 (diff)
parent25792e39cf2218f1c9bae74217e4f91682e14837 (diff)
merged from lp:~donkult/apt/sid
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/clean.cc5
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();