diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2010-05-04 19:44:11 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2010-05-04 19:44:11 +0200 |
commit | a101a93299d4a2795edb8495c117eb5095a26e2b (patch) | |
tree | e3efefef067e524eacdd3178a1678c2db7ca44ec /apt-pkg/pkgcache.cc | |
parent | 1082d4c7ad98c091688bdeb427e48913d1327279 (diff) |
return in SingleArch a package also for "any"
Diffstat (limited to 'apt-pkg/pkgcache.cc')
-rw-r--r-- | apt-pkg/pkgcache.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/pkgcache.cc b/apt-pkg/pkgcache.cc index ba3c5cbf8..a59a06d65 100644 --- a/apt-pkg/pkgcache.cc +++ b/apt-pkg/pkgcache.cc @@ -221,7 +221,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 |