]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/pkgrecords.cc
* apt-pkg/indexfile.cc:
[apt.git] / apt-pkg / pkgrecords.cc
index 1d71d3e2fb67af1085ea441ae64e2d75d8d3d39a..f62f945b5b03cb8c14e9072bb6901498ca37ef91 100644 (file)
@@ -66,3 +66,12 @@ pkgRecords::Parser &pkgRecords::Lookup(pkgCache::VerFileIterator const &Ver)
    return *Files[Ver.File()->ID];
 }
                                                                        /*}}}*/
    return *Files[Ver.File()->ID];
 }
                                                                        /*}}}*/
+// Records::Lookup - Get a parser for the package description file     /*{{{*/
+// ---------------------------------------------------------------------
+/* */
+pkgRecords::Parser &pkgRecords::Lookup(pkgCache::DescFileIterator const &Desc)
+{
+   Files[Desc.File()->ID]->Jump(Desc);
+   return *Files[Desc.File()->ID];
+}
+                                                                       /*}}}*/