+
// Includes /*{{{*/
#include <apt-pkg/algorithms.h>
+#include <apt-pkg/upgrade.h>
#include <iostream>
#include "private-install.h"
#include "private-cachefile.h"
return UpgradeHelper(CmdL, 0);
}
/*}}}*/
+bool DoUpgrade(CommandLine &CmdL) /*{{{*/
+{
+ if (_config->FindB("APT::Get::Upgrade-Allow-New", false) == true)
+ return DoUpgradeWithAllowNewPackages(CmdL);
+ else
+ return DoUpgradeNoNewPackages(CmdL);
+}
+ /*}}}*/
// DoUpgradeNoNewPackages - Upgrade all packages /*{{{*/
// ---------------------------------------------------------------------
/* Upgrade all packages without installing new packages or erasing old
// Do the upgrade
return UpgradeHelper(CmdL,
APT::Upgrade::FORBID_REMOVE_PACKAGES|
- APT::Upgrade::FORBID_NEW_INSTALL_PACKAGES);
+ APT::Upgrade::FORBID_INSTALL_NEW_PACKAGES);
}
/*}}}*/
// DoSafeUpgrade - Upgrade all packages with install but not remove /*{{{*/