]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-get.cc
make "apt-get build-dep" installed packages marked automatic
[apt.git] / cmdline / apt-get.cc
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)