summaryrefslogtreecommitdiff
path: root/cmdline/apt-get.cc
diff options
context:
space:
mode:
authorEugene V. Lyubimkin <jackyf@1501-debian>2008-12-15 19:31:54 +0200
committerEugene V. Lyubimkin <jackyf@1501-debian>2008-12-15 19:31:54 +0200
commitfef5d395460ad45c097e8563c8b822173a9ae918 (patch)
tree681dc0b93c4025b63225976f388a4d73c057449f /cmdline/apt-get.cc
parent7f1bc985dc0af4b953674f0e6702bada30f32a80 (diff)
parentd1b14e80cc22908d65445c9eb3926ebb4be190e7 (diff)
Merged from debian-sid branch.
Diffstat (limited to 'cmdline/apt-get.cc')
-rw-r--r--cmdline/apt-get.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index 5fbe21eed..43f8ec8b8 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -2515,6 +2515,8 @@ bool DoBuildDep(CommandLine &CmdL)
{
// We successfully installed something; skip remaining alternatives
skipAlternatives = hasAlternatives;
+ if(_config->FindB("APT::Get::Build-Dep-Automatic", false) == true)
+ Cache->MarkAuto(Pkg, true);
continue;
}
else if (hasAlternatives)
@@ -2730,6 +2732,7 @@ int main(int argc,const char *argv[])
{0,"only-source","APT::Get::Only-Source",0},
{0,"arch-only","APT::Get::Arch-Only",0},
{0,"auto-remove","APT::Get::AutomaticRemove",0},
+ {0,"build-dep-automatic","APT::Get::Build-Dep-Automatic",0},
{0,"allow-unauthenticated","APT::Get::AllowUnauthenticated",0},
{0,"install-recommends","APT::Install-Recommends",CommandLine::Boolean},
{0,"fix-policy","APT::Get::Fix-Policy-Broken",0},