]> git.saurik.com Git - apt.git/blobdiff - apt-private/private-upgrade.cc
improve the API for Upgrade()
[apt.git] / apt-private / private-upgrade.cc
index 9a5286b57fc26e2b88678ed4a3492a7ae09ecbde..6ea7c19d6ba29f33b1106b92f9af2235059baadb 100644 (file)
@@ -39,7 +39,7 @@ bool DoUpgradeWithAllowNewPackages(CommandLine &CmdL)
       return false;
 
    // Do the upgrade
-   if (pkgAllUpgradeNoDelete(Cache) == false)
+   if (APT::Upgrade::Upgrade(Cache, APT::Upgrade::ALLOW_NEW_INSTALLS) == false)
    {
       ShowBroken(c1out,Cache,false);
       return _error->Error(_("Internal error, AllUpgrade broke stuff"));