]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/indexrecords.cc
* added a callback to pkgMarkUsed() so that frontend can extend the root-set of the...
[apt.git] / apt-pkg / indexrecords.cc
index c4b8a82353802a6cbad7647dac9435a8a3a92a81..06ed7921cbb0cdfb90f5bed5a4449d93b18be8a5 100644 (file)
@@ -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)
 {