--- /dev/null
+
+ #include <apt-pkg/algorithms.h>
+
+ #include "private-install.h"
+ #include "private-cachefile.h"
+ #include "private-upgrade.h"
+ #include "private-output.h"
+
+
+ // DoUpgradeNoNewPackages - Upgrade all packages /*{{{*/
+ // ---------------------------------------------------------------------
+ /* Upgrade all packages without installing new packages or erasing old
+ packages */
+ bool DoUpgradeNoNewPackages(CommandLine &CmdL)
+ {
++ if (CmdL.FileSize() != 1)
++ return _error->Error(_("The upgrade command takes no arguments"));
++
+ CacheFile Cache;
+ if (Cache.OpenForInstall() == false || Cache.CheckDeps() == false)
+ return false;
+
+ // Do the upgrade
+ if (pkgAllUpgrade(Cache) == false)
+ {
+ ShowBroken(c1out,Cache,false);
+ return _error->Error(_("Internal error, AllUpgrade broke stuff"));
+ }
+
+ return InstallPackages(Cache,true);
+ }
+ /*}}}*/
+
+ // DoSafeUpgrade - Upgrade all packages with install but not remove /*{{{*/
+ bool DoUpgradeWithAllowNewPackages(CommandLine &CmdL)
+ {
++ if (CmdL.FileSize() != 1)
++ return _error->Error(_("The upgrade command takes no arguments"));
++
+ CacheFile Cache;
+ if (Cache.OpenForInstall() == false || Cache.CheckDeps() == false)
+ return false;
+
+ // Do the upgrade
+ if (pkgAllUpgradeNoDelete(Cache) == false)
+ {
+ ShowBroken(c1out,Cache,false);
+ return _error->Error(_("Internal error, AllUpgrade broke stuff"));
+ }
+
+ return InstallPackages(Cache,true);
+ }
+ /*}}}*/
+apt (0.9.11) UNRELEASED; urgency=low
+
+ [ Daniel Hartwig ]
+ * Clarify units of Acquire::http::Dl-Limit (closes: #705445)
+ * Show a error message if {,dist-}upgrade is used with additional
+ arguments (closes: #705510)
+
+ [ Michael Vogt ]
+ * lp:~mvo/apt/config-clear:
+ - support Configuration.Clear() for a clear of the entire
+ configuration
+ * lp:~mvo/apt/add-glob-function:
+ - add Glob() to fileutl.{cc,h}
++ * feature/apt-binary2
++ - refactor large chunks of cmdline/*.cc into a new libapt-private
++ library that is shared between the internal apt cmdline tools
+
+ -- Michael Vogt <michael.vogt@ubuntu.com> Thu, 15 Aug 2013 09:27:35 +0200
+
apt (0.9.10) unstable; urgency=low
The "Hello to Debconf" upload