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/deb/deblistparser.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/deb/deblistparser.cc')
-rw-r--r-- | apt-pkg/deb/deblistparser.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/deb/deblistparser.cc b/apt-pkg/deb/deblistparser.cc index 896d4d6d8..d8be66cba 100644 --- a/apt-pkg/deb/deblistparser.cc +++ b/apt-pkg/deb/deblistparser.cc @@ -637,6 +637,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) |