]> git.saurik.com Git - apt.git/commitdiff
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 104baba8a000d241b22dd90d717852635cfb41db..eda37a31e405adda56ac894a0d074df6324a6ce9 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 cd433ac253ff545181552da4d0776b6e4b055632..e034dc7337c5dd0b593c3744b3638bd9da16c7c9 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 9c53154da309d10ce52981e088c3c14ef4e7a420..0bab8e0f8567cb639c9ac89bc33bc3c3eb1fad43 100644 (file)
@@ -54,6 +54,7 @@ APT
      Only-Source "";
      Diff-Only "false";
      Tar-Only "false";
+     Build-Dep-Automatic "true";
   };
 
   Cache