From f8f410f57e7941a7bf57c5c84b77b2bcd577ac6b Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:54:55 +0000 Subject: apt-cache showsrc Author: jgg Date: 1999-10-18 03:44:39 GMT apt-cache showsrc --- apt-pkg/deb/debsrcrecords.h | 9 ++++++++- apt-pkg/srcrecords.h | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'apt-pkg') 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 &F); debSrcRecordParser(FileFd *File,pkgSourceList::const_iterator SrcItem) : diff --git a/apt-pkg/srcrecords.h b/apt-pkg/srcrecords.h index 17297a60e..8391349dd 100644 --- a/apt-pkg/srcrecords.h +++ b/apt-pkg/srcrecords.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: srcrecords.h,v 1.4 1999/07/20 05:53:33 jgg Exp $ +// $Id: srcrecords.h,v 1.5 1999/10/18 03:44:39 jgg Exp $ /* ###################################################################### Source Package Records - Allows access to source package records @@ -46,6 +46,7 @@ class pkgSrcRecords virtual bool Step() = 0; virtual bool Jump(unsigned long Off) = 0; virtual unsigned long Offset() = 0; + virtual string AsStr() = 0; virtual string Package() = 0; virtual string Version() = 0; -- cgit v1.2.3