From: Michael Vogt Date: Tue, 27 Aug 2013 12:07:52 +0000 (+0200) Subject: add new "apt-get upgrade --with-allow-new" option X-Git-Tag: 0.9.12~11^2~3 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/c8d49419be9ce10ade643370bf29891f76b5c339 add new "apt-get upgrade --with-allow-new" option The --with-allow-new option maps to APT::Get::UpgradeAllowNew and will allow "apt-get upgrade" to install new packages (but not to delete existing packages) --- diff --git a/apt-private/private-cmndline.cc b/apt-private/private-cmndline.cc index aceb865d5..c0b5a875f 100644 --- a/apt-private/private-cmndline.cc +++ b/apt-private/private-cmndline.cc @@ -163,6 +163,9 @@ bool addArgumentsAPTGet(std::vector &Args, char const * const addArg('s', "no-act", "APT::Get::Simulate", 0); } + if (CmdMatches("upgrade")) + addArg(0, "allow-new", "APT::Get::UpgradeAllowNew", CommandLine::Boolean); + // FIXME: move to the correct command(s) addArg('d',"download-only","APT::Get::Download-Only",0); addArg('y',"yes","APT::Get::Assume-Yes",0);