diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-06-11 11:59:16 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-06-11 11:59:16 +0200 |
commit | 001c76fe204e17916a6c8b351ff30b67d32cb779 (patch) | |
tree | 5ce4ec8dca05a152e6ecb2daf436cf2b5b0a9a96 /apt-pkg/deb/debmetaindex.cc | |
parent | e3c1cfc767f17f5e9b2cd99f2658db3d6ac8edd9 (diff) |
use an enum instead of strings as IndexTarget::Option interface
Strings are easy to typo and we can keep the extensibility we require
here with a simple enum we can append to without endangering ABI.
Git-Dch: Ignore
Diffstat (limited to 'apt-pkg/deb/debmetaindex.cc')
-rw-r--r-- | apt-pkg/deb/debmetaindex.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/deb/debmetaindex.cc b/apt-pkg/deb/debmetaindex.cc index 9108a5097..c05e7cdae 100644 --- a/apt-pkg/deb/debmetaindex.cc +++ b/apt-pkg/deb/debmetaindex.cc @@ -306,7 +306,7 @@ std::vector <pkgIndexFile *> *debReleaseIndex::GetIndexFiles() bool const istrusted = IsTrusted(); for (std::vector<IndexTarget>::const_iterator T = Targets.begin(); T != Targets.end(); ++T) { - std::string const TargetName = T->Options.find("CREATED_BY")->second; + std::string const TargetName = T->Option(IndexTarget::CREATED_BY); if (TargetName == "Packages") Indexes->push_back(new debPackagesIndex(*T, istrusted)); else if (TargetName == "Sources") |