From 45430cbf4cae3613394cdb7eb2cc82103407cb59 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:58:42 +0000 Subject: 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 --- cmdline/apt-get.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cmdline/apt-get.cc') diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index e7b747e34..76945b805 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: apt-get.cc,v 1.110 2001/10/02 03:16:28 tausq Exp $ +// $Id: apt-get.cc,v 1.111 2001/11/04 17:09:18 tausq Exp $ /* ###################################################################### apt-get - Cover for dpkg @@ -1860,7 +1860,7 @@ bool DoBuildDep(CommandLine &CmdL) // Process the build-dependencies vector BuildDeps; - if (Last->BuildDepends(BuildDeps) == false) + if (Last->BuildDepends(BuildDeps, _config->FindB("APT::Get::Arch-Only",false)) == false) return _error->Error(_("Unable to get build-dependency information for %s"),Src.c_str()); if (BuildDeps.size() == 0) @@ -2119,6 +2119,7 @@ int main(int argc,const char *argv[]) {0,"trivial-only","APT::Get::Trivial-Only",0}, {0,"remove","APT::Get::Remove",0}, {0,"only-source","APT::Get::Only-Source",0}, + {0,"arch-only","APT::Get::Arch-Only",0}, {'c',"config-file",0,CommandLine::ConfigFile}, {'o',"option",0,CommandLine::ArbItem}, {0,0,0,0}}; -- cgit v1.2.3-70-g09d2