summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/debsrcrecords.h
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:54:55 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:54:55 +0000
commitf8f410f57e7941a7bf57c5c84b77b2bcd577ac6b (patch)
tree0e9934672e7bd0a1b29c29ccacc4f451bc0cd26e /apt-pkg/deb/debsrcrecords.h
parent9e2a06ff63968286395f3426b689cf7c3914a883 (diff)
apt-cache showsrc
Author: jgg Date: 1999-10-18 03:44:39 GMT apt-cache showsrc
Diffstat (limited to 'apt-pkg/deb/debsrcrecords.h')
-rw-r--r--apt-pkg/deb/debsrcrecords.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/apt-pkg/deb/debsrcrecords.h b/apt-pkg/deb/debsrcrecords.h
index 426b914e8..e09a57f3c 100644
--- a/apt-pkg/deb/debsrcrecords.h
+++ b/apt-pkg/deb/debsrcrecords.h
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: debsrcrecords.h,v 1.3 1999/04/07 05:51:01 jgg Exp $
+// $Id: debsrcrecords.h,v 1.4 1999/10/18 03:44:39 jgg Exp $
/* ######################################################################
Debian Source Package Records - Parser implementation for Debian style
@@ -38,6 +38,13 @@ class debSrcRecordParser : public pkgSrcRecords::Parser
virtual string Section() {return Sect.FindS("Section");};
virtual const char **Binaries();
virtual unsigned long Offset() {return iOffset;};
+ virtual unsigned long Length() {return Sec.size();};
+ virtual string AsStr()
+ {
+ const char *Start,Stop;
+ Sect.GetSection(Start,Stop);
+ return string(Start,Stop);
+ };
virtual bool Files(vector<pkgSrcRecords::File> &F);
debSrcRecordParser(FileFd *File,pkgSourceList::const_iterator SrcItem) :