]> git.saurik.com Git - apt.git/commitdiff
Merge remote-tracking branch 'mvo/feature/upgrade-with-new' into debian/sid
authorMichael Vogt <mvo@debian.org>
Tue, 8 Oct 2013 17:59:04 +0000 (19:59 +0200)
committerMichael Vogt <mvo@debian.org>
Tue, 8 Oct 2013 17:59:04 +0000 (19:59 +0200)
apt-private/private-cmndline.cc
cmdline/apt-get.cc
doc/apt-get.8.xml

index 5124ac157358e5864e2dcc884b16ecd9c6e6a72c..8ba6629a802d4b26c5e74c187d839e1d47850a70 100644 (file)
@@ -129,7 +129,8 @@ bool addArgumentsAPTGet(std::vector<CommandLine::Args> &Args, char const * const
       addArg(0, "solver", "APT::Solver", CommandLine::HasArg);
       if (CmdMatches("upgrade"))
       {
-        addArg(0, "allow-new", "APT::Get::UpgradeAllowNew", 0);
+         addArg(0, "new-pkgs", "APT::Get::Upgrade-Allow-New", 
+                CommandLine::Boolean);
       }
    }
    else if (CmdMatches("update"))
index 630a9489b31c0351fba6b0952400ea9fe49794e4..e5e22e16635a7e31260acb0dca0f68740912cfe9 100644 (file)
@@ -1598,7 +1598,7 @@ void SigWinch(int)
                                                                        /*}}}*/
 bool DoUpgrade(CommandLine &CmdL)                                      /*{{{*/
 {
-   if (_config->FindB("APT::Get::UpgradeAllowNew", false) == true)
+   if (_config->FindB("APT::Get::Upgrade-Allow-New", false) == true)
       return DoUpgradeWithAllowNewPackages(CmdL);
    else
       return DoUpgradeNoNewPackages(CmdL);
index 18a559c0b6a21711defaf39a3049ffacfcf9c4a1..4c050ec03a7618a9de554b1bb6adeae080d067da 100644 (file)
      Configuration Item: <literal>APT::Ignore-Hold</literal>.</para></listitem>
      </varlistentry>
 
+     <varlistentry><term><option>--with-new-pkgs</option></term>
+     <listitem><para>Allow installing new packages when used in
+     conjunction with <literal>upgrade</literal>.  This is useful if
+     the update of a installed package requires new dependencies to be
+     installed. Instead of holding the package back <literal>upgrade</literal>
+     will upgrade the package and install the new dependencies. Note that
+     <literal>upgrade</literal> with this option will never remove packages,
+     only allow adding new ones.
+     Configuration Item:  <literal>APT::Get::Upgrade-Allow-New</literal>.
+     </para></listitem>
+     </varlistentry>
+
      <varlistentry><term><option>--no-upgrade</option></term>
      <listitem><para>Do not upgrade packages; when used in conjunction with <literal>install</literal>,
      <literal>no-upgrade</literal> will prevent packages on the command line