summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-05-04 18:01:51 +0200
committerJulian Andres Klode <jak@debian.org>2010-05-04 18:01:51 +0200
commit61d15f9104e1f574b0786700207675b892a0e241 (patch)
tree613c784b2e33d7c8ce27314838c71eb5d4748356 /apt-pkg
parentd63a1458427692a6f98274e76020e0f803408d81 (diff)
* apt-pkg/pkgcache.cc:
- Merge fix from David to correct handling in single-arch environments. This makes apt-get showauto working.
Diffstat (limited to 'apt-pkg')
-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 1bbd74bd9..351702240 100644
--- a/apt-pkg/pkgcache.cc
+++ b/apt-pkg/pkgcache.cc
@@ -218,7 +218,7 @@ pkgCache::PkgIterator pkgCache::FindPkg(const string &Name) {
/* Returns 0 on error, pointer to the package otherwise */
pkgCache::PkgIterator pkgCache::FindPkg(const string &Name, string const &Arch) {
if (MultiArchCache() == false) {
- if (Arch == "native" || Arch == "all" ||
+ if (Arch == "native" || Arch == "all" || Arch == "any" ||
Arch == _config->Find("APT::Architecture"))
return SingleArchFindPkg(Name);
else