From: Michael Vogt Date: Wed, 6 Aug 2008 11:58:44 +0000 (+0200) Subject: make "apt-get build-dep" installed packages marked automatic X-Git-Tag: 0.7.24ubuntu1~63^2 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/496a05c628d39c981a8f472f16629043d8508808 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) --- 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) diff --git a/debian/changelog b/debian/changelog index cd433ac25..e034dc733 100644 --- a/debian/changelog +++ b/debian/changelog @@ -27,7 +27,11 @@ apt (0.7.15) UNRELEASED; urgency=low * document --install-recommends and --no-install-recommends (thanks to Dereck Wonnacott, LP: #126180) * fix various -Wall warnings - + * 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) + [ Dereck Wonnacott ] * apt-ftparchive might write corrupt Release files (LP: #46439) * Apply --important option to apt-cache depends (LP: #16947) diff --git a/doc/examples/configure-index b/doc/examples/configure-index index 9c53154da..0bab8e0f8 100644 --- a/doc/examples/configure-index +++ b/doc/examples/configure-index @@ -54,6 +54,7 @@ APT Only-Source ""; Diff-Only "false"; Tar-Only "false"; + Build-Dep-Automatic "true"; }; Cache