summaryrefslogtreecommitdiff
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
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)
-rw-r--r--cmdline/apt-get.cc2
-rw-r--r--debian/changelog6
-rw-r--r--doc/examples/configure-index1
3 files changed, 8 insertions, 1 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)
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