diff options
author | Matt Zimmerman <matt.zimmerman@canonical.com> | 2005-02-04 23:31:55 +0000 |
---|---|---|
committer | Matt Zimmerman <matt.zimmerman@canonical.com> | 2005-02-04 23:31:55 +0000 |
commit | a75c6a6e17c6602a71e03aca8bafa96477a68706 (patch) | |
tree | 9fd1a97cbb14c23c10917e9d1c315a1044673258 /apt-pkg/indexrecords.cc | |
parent | 429465b26c77b3b6d37adc45e576e9cdf7e80f91 (diff) |
Move CD-ROM handling backend into libapt-pkg
- apt-cdrom.cc seperated into frontend (cmdline/apt-cdrom.cc and library
apt-pkg/cdrom.{cc,h}) (Ubuntu #5668)
Patches applied:
* michael.vogt@ubuntu.com--2005/apt--auth-cdrom--0--base-0
tag of apt@packages.debian.org/apt--main--0--patch-51
* michael.vogt@ubuntu.com--2005/apt--auth-cdrom--0--patch-1
* added support for signed cdroms
* michael.vogt@ubuntu.com--2005/apt--auth-cdrom--0--patch-2
* merged with apt--main, seperated cmdline/apt-cdrom.cc into a library (apt-pkg/cdrom.{cc,h})
* michael.vogt@ubuntu.com--2005/apt--auth-cdrom--0--patch-3
* cleaned up the cmdline/apt-cdrom.cc code
Diffstat (limited to 'apt-pkg/indexrecords.cc')
-rw-r--r-- | apt-pkg/indexrecords.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apt-pkg/indexrecords.cc b/apt-pkg/indexrecords.cc index c4b8a8235..06ed7921c 100644 --- a/apt-pkg/indexrecords.cc +++ b/apt-pkg/indexrecords.cc @@ -83,6 +83,17 @@ bool indexRecords::Load(const string Filename) return true; } +vector<string> indexRecords::MetaKeys() +{ + std::vector<std::string> keys; + std::map<string,checkSum *>::iterator I = Entries.begin(); + while(I != Entries.end()) { + keys.push_back((*I).first); + ++I; + } + return keys; +} + bool indexRecords::parseSumData(const char *&Start, const char *End, string &Name, string &Hash, size_t &Size) { |