From: Michael Vogt Date: Tue, 8 Oct 2013 17:59:04 +0000 (+0200) Subject: Merge remote-tracking branch 'mvo/feature/upgrade-with-new' into debian/sid X-Git-Tag: 0.9.12~11 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/649d3c5b7df830a67ad946921233da349c13a826?hp=15847d263c371cadcb8664021b8eb2444dd70998 Merge remote-tracking branch 'mvo/feature/upgrade-with-new' into debian/sid --- diff --git a/apt-private/private-cmndline.cc b/apt-private/private-cmndline.cc index 5124ac157..8ba6629a8 100644 --- a/apt-private/private-cmndline.cc +++ b/apt-private/private-cmndline.cc @@ -129,7 +129,8 @@ bool addArgumentsAPTGet(std::vector &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")) diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index 630a9489b..e5e22e166 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -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); diff --git a/doc/apt-get.8.xml b/doc/apt-get.8.xml index 18a559c0b..4c050ec03 100644 --- a/doc/apt-get.8.xml +++ b/doc/apt-get.8.xml @@ -389,6 +389,18 @@ Configuration Item: APT::Ignore-Hold. + + Allow installing new packages when used in + conjunction with upgrade. This is useful if + the update of a installed package requires new dependencies to be + installed. Instead of holding the package back upgrade + will upgrade the package and install the new dependencies. Note that + upgrade with this option will never remove packages, + only allow adding new ones. + Configuration Item: APT::Get::Upgrade-Allow-New. + + + Do not upgrade packages; when used in conjunction with install, no-upgrade will prevent packages on the command line