summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgcache.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-06-29 16:44:46 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2009-06-29 16:44:46 +0200
commitafe4d2a556535dbc9475ac1665c380a235dd28de (patch)
tree09309acf8e9b9e461d675a1d1377ba0b0b19aa6f /apt-pkg/pkgcache.cc
parentf8ae7e8b3c5585888cbc0516b35131acec14ff05 (diff)
parentefc487fbd46905f5f3efc4f31d7df15625bcbecf (diff)
downloadapt-afe4d2a556535dbc9475ac1665c380a235dd28de.tar.gz
[ABI break] Allow pinning by codename (closes: #97564)
Diffstat (limited to 'apt-pkg/pkgcache.cc')
-rw-r--r--apt-pkg/pkgcache.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/pkgcache.cc b/apt-pkg/pkgcache.cc
index 7a0d7376d..81a254483 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)