diff options
author | Michael Vogt <mvo@debian.org> | 2008-12-02 20:54:43 +0100 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2008-12-02 20:54:43 +0100 |
commit | d59228b0656483be9b60aa9d5e7b4759bf9e6b15 (patch) | |
tree | d713314330118d235d93c68df21ce858272cbc30 /cmdline | |
parent | 8f989911535e3a7e96fe2bb1746c55e072583061 (diff) | |
download | apt-d59228b0656483be9b60aa9d5e7b4759bf9e6b15.tar.gz |
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.cc | 3 |
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}, |