diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2009-05-07 12:04:21 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2009-05-07 12:04:21 +0200 |
commit | efc487fbd46905f5f3efc4f31d7df15625bcbecf (patch) | |
tree | 97babac94cfdc1b9006aa493d96706ed904ae13c /apt-pkg/pkgcache.cc | |
parent | 0365a8b90cd13a4010006c9cf087657dcf6dac7a (diff) |
[apt-pkg] allow also codenames for specifying a release
* MatchType::Release checks first for archive than for codename equality
* new n= option in apt_preference to be able to pin based on a codeName
Diffstat (limited to 'apt-pkg/pkgcache.cc')
-rw-r--r-- | apt-pkg/pkgcache.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/pkgcache.cc b/apt-pkg/pkgcache.cc index 4fbf42c4b..f5303682c 100644 --- a/apt-pkg/pkgcache.cc +++ b/apt-pkg/pkgcache.cc @@ -607,6 +607,8 @@ string pkgCache::PkgFileIterator::RelStr() Res = Res + (Res.empty() == true?"o=":",o=") + Origin(); if (Archive() != 0) Res = Res + (Res.empty() == true?"a=":",a=") + Archive(); + if (Codename() != 0) + Res = Res + (Res.empty() == true?"n=":",n=") + Codename(); if (Label() != 0) Res = Res + (Res.empty() == true?"l=":",l=") + Label(); if (Component() != 0) |