diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:58:42 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:58:42 +0000 |
commit | 45430cbf4cae3613394cdb7eb2cc82103407cb59 (patch) | |
tree | 34771b31098be68e0c83ab310b7c04ef5b024477 /apt-pkg/deb | |
parent | fd71171a9f0e07c3bba58e6ab7478609d97b7058 (diff) |
Add --arch-only option for apt-get build-dep only only ...
Author: tausq
Date: 2001-11-04 17:09:18 GMT
Add --arch-only option for apt-get build-dep only only process
arch-dependent build-dependencies.
Small change to srcrecord class; bumped minor so number to 3.3
Diffstat (limited to 'apt-pkg/deb')
-rw-r--r-- | apt-pkg/deb/debsrcrecords.cc | 7 | ||||
-rw-r--r-- | apt-pkg/deb/debsrcrecords.h | 4 |
2 files changed, 7 insertions, 4 deletions
diff --git a/apt-pkg/deb/debsrcrecords.cc b/apt-pkg/deb/debsrcrecords.cc index d452095cd..639079be3 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.4 2001/02/20 07:03:17 jgg Exp $ +// $Id: debsrcrecords.cc,v 1.5 2001/11/04 17:09:18 tausq Exp $ /* ###################################################################### Debian Source Package Records - Parser implementation for Debian style @@ -47,7 +47,7 @@ const char **debSrcRecordParser::Binaries() package/version records representing the build dependency. The returned array need not be freed and will be reused by the next call to this function */ -bool debSrcRecordParser::BuildDepends(vector<pkgSrcRecords::Parser::BuildDepRec> &BuildDeps) +bool debSrcRecordParser::BuildDepends(vector<pkgSrcRecords::Parser::BuildDepRec> &BuildDeps, bool ArchOnly) { unsigned int I; const char *Start, *Stop; @@ -61,6 +61,9 @@ bool debSrcRecordParser::BuildDepends(vector<pkgSrcRecords::Parser::BuildDepRec> for (I = 0; I < 4; I++) { + if (ArchOnly && (I == 1 || I == 3)) + continue; + if (Sect.Find(fields[I], Start, Stop) == false) continue; diff --git a/apt-pkg/deb/debsrcrecords.h b/apt-pkg/deb/debsrcrecords.h index 477fe4fe3..a49734795 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.6 2001/02/20 07:03:17 jgg Exp $ +// $Id: debsrcrecords.h,v 1.7 2001/11/04 17:09:18 tausq Exp $ /* ###################################################################### Debian Source Package Records - Parser implementation for Debian style @@ -39,7 +39,7 @@ class debSrcRecordParser : public pkgSrcRecords::Parser virtual string Maintainer() const {return Sect.FindS("Maintainer");}; virtual string Section() const {return Sect.FindS("Section");}; virtual const char **Binaries(); - virtual bool BuildDepends(vector<BuildDepRec> &BuildDeps); + virtual bool BuildDepends(vector<BuildDepRec> &BuildDeps, bool ArchOnly); virtual unsigned long Offset() {return iOffset;}; virtual string AsStr() { |