diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:53:24 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:53:24 +0000 |
commit | 36375005d9e971d2fdfc62224671f009ce7adaf9 (patch) | |
tree | 4793d82c73be374f8f7a629237af2d73874fb468 /apt-pkg/deb | |
parent | 36f610f18a9a12c02ba89c6bb84726f7ed3ba7ad (diff) |
working apt-get source
Author: jgg
Date: 1999-04-07 05:30:17 GMT
working apt-get source
Diffstat (limited to 'apt-pkg/deb')
-rw-r--r-- | apt-pkg/deb/debrecords.cc | 10 | ||||
-rw-r--r-- | apt-pkg/deb/debrecords.h | 3 | ||||
-rw-r--r-- | apt-pkg/deb/debsrcrecords.cc | 6 |
3 files changed, 14 insertions, 5 deletions
diff --git a/apt-pkg/deb/debrecords.cc b/apt-pkg/deb/debrecords.cc index a2005914d..f86287b11 100644 --- a/apt-pkg/deb/debrecords.cc +++ b/apt-pkg/deb/debrecords.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: debrecords.cc,v 1.6 1999/03/29 19:28:52 jgg Exp $ +// $Id: debrecords.cc,v 1.7 1999/04/07 05:30:18 jgg Exp $ /* ###################################################################### Debian Package Records - Parser for debian package records @@ -75,3 +75,11 @@ string debRecordParser::LongDesc() return Section.FindS("Description"); } /*}}}*/ +// debRecordParser::SourcePkg - Return the source package name if any /*{{{*/ +// --------------------------------------------------------------------- +/* */ +string debRecordParser::SourcePkg() +{ + return Section.FindS("Source"); +} + /*}}}*/ diff --git a/apt-pkg/deb/debrecords.h b/apt-pkg/deb/debrecords.h index b91d07092..9191ebcda 100644 --- a/apt-pkg/deb/debrecords.h +++ b/apt-pkg/deb/debrecords.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: debrecords.h,v 1.5 1999/03/29 19:28:52 jgg Exp $ +// $Id: debrecords.h,v 1.6 1999/04/07 05:30:18 jgg Exp $ /* ###################################################################### Debian Package Records - Parser for debian package records @@ -36,6 +36,7 @@ class debRecordParser : public pkgRecords::Parser // These refer to the archive file for the Version virtual string FileName(); virtual string MD5Hash(); + virtual string SourcePkg(); // These are some general stats about the package virtual string Maintainer(); diff --git a/apt-pkg/deb/debsrcrecords.cc b/apt-pkg/deb/debsrcrecords.cc index fa8407c51..7a06e30b9 100644 --- a/apt-pkg/deb/debsrcrecords.cc +++ b/apt-pkg/deb/debsrcrecords.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: debsrcrecords.cc,v 1.2 1999/04/04 08:07:39 jgg Exp $ +// $Id: debsrcrecords.cc,v 1.3 1999/04/07 05:30:18 jgg Exp $ /* ###################################################################### Debian Source Package Records - Parser implementation for Debian style @@ -75,10 +75,10 @@ bool debSrcRecordParser::Files(vector<pkgSrcRecords::File> &List) return false; // Stash the / terminated directory prefix - string Base = Sect.FindS("Directory:"); + string Base = Sect.FindS("Directory"); if (Base.empty() == false && Base[Base.length()-1] != '/') Base += '/'; - + // Iterate over the entire list grabbing each triplet const char *C = Files.c_str(); while (*C != 0) |