summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgrecords.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-08-11 19:14:51 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-08-11 19:14:51 +0200
commit79f24b42cfa60fa79a427c5e37a01de303543a4b (patch)
tree3a1de45fb9b37f2e6ba71948c3c8028093f812b2 /apt-pkg/pkgrecords.cc
parent2ae2e04d97028b558bfe954e55a80513e0202889 (diff)
parentfb603534bf69ae4b01f5abda4e42814450e59a31 (diff)
* merged ddtp support
Diffstat (limited to 'apt-pkg/pkgrecords.cc')
-rw-r--r--apt-pkg/pkgrecords.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/apt-pkg/pkgrecords.cc b/apt-pkg/pkgrecords.cc
index 9c2655d6a..b22f3e73f 100644
--- a/apt-pkg/pkgrecords.cc
+++ b/apt-pkg/pkgrecords.cc
@@ -63,3 +63,12 @@ pkgRecords::Parser &pkgRecords::Lookup(pkgCache::VerFileIterator const &Ver)
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];
+}
+ /*}}}*/