diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2011-04-06 13:27:52 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2011-04-06 13:27:52 +0200 |
commit | eddc9dd092138fee6e71f92ba41dc21918a03f73 (patch) | |
tree | ab7b6e384334dbb896438c1628e4955129b94b46 /apt-pkg | |
parent | 00870bf52186b5adb9819c707b411ac2fffe482b (diff) |
document the pkg:any specialcasing in FindPkg as well to make it clear
that it is a needed "hack" to support multi-arch in the least breaking way
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/pkgcache.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apt-pkg/pkgcache.cc b/apt-pkg/pkgcache.cc index c6326abf1..c16005e38 100644 --- a/apt-pkg/pkgcache.cc +++ b/apt-pkg/pkgcache.cc @@ -217,6 +217,9 @@ pkgCache::PkgIterator pkgCache::FindPkg(const string &Name) { if (found == string::npos) return FindPkg(Name, "native"); string const Arch = Name.substr(found+1); + /* Beware: This is specialcased to handle pkg:any in dependencies as + these are linked to virtual pkg:any named packages with all archs. + If you want any arch from a given pkg, use FindPkg(pkg,arch) */ if (Arch == "any") return FindPkg(Name, "any"); return FindPkg(Name.substr(0, found), Arch); |