Преглед изворни кода

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)
Michael Vogt пре 13 година
родитељ
комит
c8d49419be
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      apt-private/private-cmndline.cc

+ 3 - 0
apt-private/private-cmndline.cc

@@ -163,6 +163,9 @@ bool addArgumentsAPTGet(std::vector<CommandLine::Args> &Args, char const * const
       addArg('s', "no-act", "APT::Get::Simulate", 0);
       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)
    // FIXME: move to the correct command(s)
    addArg('d',"download-only","APT::Get::Download-Only",0);
    addArg('d',"download-only","APT::Get::Download-Only",0);
    addArg('y',"yes","APT::Get::Assume-Yes",0);
    addArg('y',"yes","APT::Get::Assume-Yes",0);