From: Michael Vogt Date: Sat, 17 Aug 2013 07:18:36 +0000 (+0200) Subject: Merge remote-tracking branch 'mvo/feature/apt-binary2' into debian/sid X-Git-Tag: 0.9.11~5 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/f49d103adc47c5c34f4ca852605ee55710e486b9 Merge remote-tracking branch 'mvo/feature/apt-binary2' into debian/sid Conflicts: cmdline/apt-get.cc --- f49d103adc47c5c34f4ca852605ee55710e486b9 diff --cc apt-private/private-upgrade.cc index 000000000,85b5a492a..eb546e3e3 mode 000000,100644..100644 --- a/apt-private/private-upgrade.cc +++ b/apt-private/private-upgrade.cc @@@ -1,0 -1,47 +1,53 @@@ + + #include + + #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); + } + /*}}}*/ diff --cc debian/changelog index 76e1bc1fb,8e4def2b0..bd6357c62 --- a/debian/changelog +++ b/debian/changelog @@@ -1,19 -1,3 +1,22 @@@ +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 Thu, 15 Aug 2013 09:27:35 +0200 + apt (0.9.10) unstable; urgency=low The "Hello to Debconf" upload