summaryrefslogtreecommitdiff
path: root/apt-pkg/clean.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2012-07-05 08:59:52 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2012-07-05 08:59:52 +0200
commit469b02781dfb4517282da4d497c5f7fd0dcb97f4 (patch)
treee82f0448586103cc0efccd52fea7a9c4975148e8 /apt-pkg/clean.cc
parentb855a40058f99a0f10184c410b3bbf3c2ee4ae83 (diff)
* apt-pkg/clean.cc:
- run autoclean against pkg:arch and not always against pkg:native as this removes valid cache entries (Closes: #679371)
Diffstat (limited to 'apt-pkg/clean.cc')
-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();