diff options
author | Michael Vogt <mvo@debian.org> | 2013-08-28 11:28:40 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2013-08-28 11:28:40 +0200 |
commit | c678a0443518aa5e8f328f358fca7b35252df84e (patch) | |
tree | 55527db5a7b314b612a1768b402a24363078af53 /apt-private/private-cmndline.cc | |
parent | c8d49419be9ce10ade643370bf29891f76b5c339 (diff) |
add man-page, improve option, use --with-new-pkgs as the flag
Diffstat (limited to 'apt-private/private-cmndline.cc')
-rw-r--r-- | apt-private/private-cmndline.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apt-private/private-cmndline.cc b/apt-private/private-cmndline.cc index c0b5a875f..152256806 100644 --- a/apt-private/private-cmndline.cc +++ b/apt-private/private-cmndline.cc @@ -125,7 +125,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, "allow-new", "APT::Get::Upgrade-Allow-New", + CommandLine::Boolean); } } else if (CmdMatches("update")) @@ -163,9 +164,6 @@ bool addArgumentsAPTGet(std::vector<CommandLine::Args> &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); |