summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgcache.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-03-25 20:17:32 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-03-25 20:17:32 +0100
commit566046f403acb3f50df78be93ea3b68b9f2c3e7b (patch)
tree3a8b111181baff04cc3e37958acfeac97db006ae /apt-pkg/pkgcache.cc
parente548ae1c69c101f2a0b610fd2bf7b337f22fb09e (diff)
* apt-pkg/pkgcachegen.cc:
- make "all"->"native" an implementation detail of NewPackage rather than rewrite it in higher methods
Diffstat (limited to 'apt-pkg/pkgcache.cc')
-rw-r--r--apt-pkg/pkgcache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/pkgcache.cc b/apt-pkg/pkgcache.cc
index 7014aee22..dbcbd9c26 100644
--- a/apt-pkg/pkgcache.cc
+++ b/apt-pkg/pkgcache.cc
@@ -321,7 +321,7 @@ pkgCache::PkgIterator pkgCache::GrpIterator::FindPkg(string Arch) const {
/* Most of the time the package for our native architecture is
the one we add at first to the cache, but this would be the
last one we check, so we do it now. */
- if (Arch == "native" || Arch == myArch) {
+ if (Arch == "native" || Arch == myArch || Arch == "all") {
Arch = myArch;
pkgCache::Package *Pkg = Owner->PkgP + S->LastPackage;
if (stringcasecmp(Arch, Owner->StrP + Pkg->Arch) == 0)