make "apt-get build-dep" installed packages marked automatic
authorMichael Vogt <michael.vogt@ubuntu.com>
Wed, 6 Aug 2008 11:58:44 +0000 (13:58 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Wed, 6 Aug 2008 11:58:44 +0000 (13:58 +0200)
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
debian/changelog
doc/examples/configure-index

index 104baba..eda37a3 100644 (file)
@@ -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)
index cd433ac..e034dc7 100644 (file)
@@ -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) 
index 9c53154..0bab8e0 100644 (file)
@@ -54,6 +54,7 @@ APT
      Only-Source "";
      Diff-Only "false";
      Tar-Only "false";
+     Build-Dep-Automatic "true";
   };
 
   Cache