]> git.saurik.com Git - apt.git/commitdiff
make "apt-get build-dep" installed packages marked automatic
authorMichael Vogt <mvo@debian.org>
Tue, 2 Dec 2008 19:54:43 +0000 (20:54 +0100)
committerMichael Vogt <mvo@debian.org>
Tue, 2 Dec 2008 19:54:43 +0000 (20:54 +0100)
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
configure.in
debian/changelog
doc/examples/configure-index

index 5fbe21eed3d86ec5cf9b2d5e86e9c649264d969c..43f8ec8b86d7ff5e0054c46b7a6ed1dcf7130ee2 100644 (file)
@@ -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},
index 0ffbc67ffeafedc3626c234ccf2b9b386d8a3361..f90a32c3be31b7d8f75d507efde2f6352076ef9e 100644 (file)
@@ -18,7 +18,7 @@ AC_CONFIG_AUX_DIR(buildlib)
 AC_CONFIG_HEADER(include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in)
 
 dnl -- SET THIS TO THE RELEASE VERSION --
-AC_DEFINE_UNQUOTED(VERSION,"0.7.18")
+AC_DEFINE_UNQUOTED(VERSION,"0.7.20~exp3")
 PACKAGE="apt"
 AC_DEFINE_UNQUOTED(PACKAGE,"$PACKAGE")
 AC_SUBST(PACKAGE)
index d1ccf8b8fbddcc1b26f2a0c54a733ee1cabe0593..325804f84c6ef6e730ecfed0c9130dc2a64d7c7d 100644 (file)
@@ -1,4 +1,10 @@
-apt (0.7.20~exp2) unstable; urgency=low
+apt (0.7.20~exp3) unstable; urgency=low
+
+  [ Michael Vogt ]
+  * 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)
 
   [ Eugene V. Lyubimkin ]
   * doc/examples/sources.list:
@@ -8,7 +14,7 @@ apt (0.7.20~exp2) unstable; urgency=low
     - Added instruction how to work around MMap error in MMap error message.
       (Closes: #385674, 436028)
 
- -- Eugene V. Lyubimkin <jackyf.devel@gmail.com>  Wed, 26 Nov 2008 22:06:21 +0200
+ -- Michael Vogt <mvo@debian.org>  Tue, 02 Dec 2008 20:30:14 +0100
 
 apt (0.7.19) unstable; urgency=low
 
index 07803b2cbaddea492f9f46ba97a36ae93a1a7988..db07f189ee84096b40a8390b9acd617c8c852ce9 100644 (file)
@@ -54,6 +54,7 @@ APT
      Only-Source "";
      Diff-Only "false";
      Tar-Only "false";
+     Build-Dep-Automatic "true";
   };
 
   Cache