summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/deblistparser.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/deb/deblistparser.cc
parentf8ae7e8b3c5585888cbc0516b35131acec14ff05 (diff)
parentefc487fbd46905f5f3efc4f31d7df15625bcbecf (diff)
[ABI break] Allow pinning by codename (closes: #97564)
Diffstat (limited to 'apt-pkg/deb/deblistparser.cc')
-rw-r--r--apt-pkg/deb/deblistparser.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/deb/deblistparser.cc b/apt-pkg/deb/deblistparser.cc
index 74fa6fab4..b2b8b8fb6 100644
--- a/apt-pkg/deb/deblistparser.cc
+++ b/apt-pkg/deb/deblistparser.cc
@@ -639,6 +639,8 @@ bool debListParser::LoadReleaseInfo(pkgCache::PkgFileIterator FileI,
FileI->Version = WriteUniqString(Start,Stop - Start);
if (Section.Find("Origin",Start,Stop) == true)
FileI->Origin = WriteUniqString(Start,Stop - Start);
+ if (Section.Find("Codename",Start,Stop) == true)
+ FileI->Codename = WriteUniqString(Start,Stop - Start);
if (Section.Find("Label",Start,Stop) == true)
FileI->Label = WriteUniqString(Start,Stop - Start);
if (Section.Find("Architecture",Start,Stop) == true)