summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2008-08-06 13:58:44 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2008-08-06 13:58:44 +0200
commit496a05c628d39c981a8f472f16629043d8508808 (patch)
tree6f373f19f9f4593a03e58153680063a6f22ac194 /cmdline
parent9b5d79ec68d5380f26b92cd0d9cb7af6a19ac849 (diff)
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)
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-get.cc2
1 files changed, 2 insertions, 0 deletions
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)