X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/11e7af846822e893604052db7822de016fb97417..101030ab14d60497fcba5b1c2866d52fc5ac4780:/apt-pkg/deb/debsrcrecords.h diff --git a/apt-pkg/deb/debsrcrecords.h b/apt-pkg/deb/debsrcrecords.h index 5d3b20488..50488d4b6 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.1 1999/04/04 01:17:29 jgg Exp $ +// $Id: debsrcrecords.h,v 1.5 1999/10/18 04:15:25 jgg Exp $ /* ###################################################################### Debian Source Package Records - Parser implementation for Debian style @@ -38,8 +38,16 @@ class debSrcRecordParser : public pkgSrcRecords::Parser virtual string Section() {return Sect.FindS("Section");}; virtual const char **Binaries(); virtual unsigned long Offset() {return iOffset;}; + virtual string AsStr() + { + const char *Start=0,*Stop=0; + Sect.GetSection(Start,Stop); + return string(Start,Stop); + }; + virtual bool Files(vector &F); - debSrcRecordParser(FileFd *File) : Parser(File), + debSrcRecordParser(FileFd *File,pkgSourceList::const_iterator SrcItem) : + Parser(File,SrcItem), Tags(*File,sizeof(Buffer)) {}; };