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)
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)
addArg('d',"download-only","APT::Get::Download-Only",0);
addArg('y',"yes","APT::Get::Assume-Yes",0);
// FIXME: move to the correct command(s)
addArg('d',"download-only","APT::Get::Download-Only",0);
addArg('y',"yes","APT::Get::Assume-Yes",0);