From 496a05c628d39c981a8f472f16629043d8508808 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 6 Aug 2008 13:58:44 +0200 Subject: make "apt-get build-dep" installed packages marked automatic by default. This can be changed by setting the value of APT::Get::Build-Dep-Automatic to false (thanks to Aaron Haviland, closes: #44874, LP: #248268) --- cmdline/apt-get.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmdline') diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index 104baba8a..eda37a31e 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -2513,6 +2513,8 @@ bool DoBuildDep(CommandLine &CmdL) { // We successfully installed something; skip remaining alternatives skipAlternatives = hasAlternatives; + if(_config->FindB("APT::Get::Build-Dep-Automatic", true) == true) + Cache->MarkAuto(Pkg, true); continue; } else if (hasAlternatives) -- cgit v1.2.3