diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:58:43 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:58:43 +0000 |
commit | 7d6f9f8ffb7ba9caf7cc25dc102c59616150f36e (patch) | |
tree | a2e3e8c67f856a9cac40898e96bf5fc2ace4ee8b /cmdline | |
parent | 45430cbf4cae3613394cdb7eb2cc82103407cb59 (diff) |
apt-pkg/init.cc
Author: tausq
Date: 2001-12-05 07:22:39 GMT
apt-pkg/init.cc
APT::Build-Essential default value
cmdline/apt-get.cc
Also install APT::Build-Essential packages when apt-get build-dep is
invoked
debian/changelog
Updated changelog
doc/examples/configure-index
doc/apt.conf.5.sgml
Document APT::Build-Essential
Diffstat (limited to 'cmdline')
-rw-r--r-- | cmdline/apt-get.cc | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index 76945b805..a3dc92816 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.111 2001/11/04 17:09:18 tausq Exp $ +// $Id: apt-get.cc,v 1.112 2001/12/05 07:22:40 tausq Exp $ /* ###################################################################### apt-get - Cover for dpkg @@ -1863,6 +1863,22 @@ bool DoBuildDep(CommandLine &CmdL) 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()); + // Also ensure that build-essential packages are present + Configuration::Item const *Opts = _config->Tree("APT::Build-Essential"); + if (Opts) + Opts = Opts->Child; + for (; Opts; Opts = Opts->Next) + { + if (Opts->Value.empty() == true) + continue; + + pkgSrcRecords::Parser::BuildDepRec rec; + rec.Package = Opts->Value; + rec.Type = pkgSrcRecords::Parser::BuildDependIndep; + rec.Op = 0; + BuildDeps.insert(BuildDeps.begin(), rec); + } + if (BuildDeps.size() == 0) { ioprintf(c1out,_("%s has no build depends.\n"),Src.c_str()); |