diff options
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/deb/debsrcrecords.h | 5 | ||||
-rw-r--r-- | apt-pkg/srcrecords.cc | 8 |
2 files changed, 6 insertions, 7 deletions
diff --git a/apt-pkg/deb/debsrcrecords.h b/apt-pkg/deb/debsrcrecords.h index e09a57f3c..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.4 1999/10/18 03:44:39 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,10 +38,9 @@ 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; + const char *Start=0,*Stop=0; Sect.GetSection(Start,Stop); return string(Start,Stop); }; diff --git a/apt-pkg/srcrecords.cc b/apt-pkg/srcrecords.cc index 23d3a5fc0..6da902d98 100644 --- a/apt-pkg/srcrecords.cc +++ b/apt-pkg/srcrecords.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: srcrecords.cc,v 1.2 1999/04/07 05:30:18 jgg Exp $ +// $Id: srcrecords.cc,v 1.3 1999/10/18 04:15:24 jgg Exp $ /* ###################################################################### Source Package Records - Allows access to source package records @@ -66,7 +66,7 @@ pkgSrcRecords::pkgSrcRecords(pkgSourceList &List) : Files(0), Current(0) Files[Count] = new debSrcRecordParser(FD,I); Count++; } - + Restart(); } /*}}}*/ @@ -90,8 +90,8 @@ bool pkgSrcRecords::Restart() { Current = Files; for (Parser **I = Files; *I != 0; I++) - if ((*I)->Restart() == false) - return false; + (*I)->Restart(); + return true; } /*}}}*/ |