diff options
author | Michael Vogt <mvo@ubuntu.com> | 2014-06-18 20:23:53 +0200 |
---|---|---|
committer | Michael Vogt <mvo@ubuntu.com> | 2014-06-18 20:23:53 +0200 |
commit | bc5095b7d708c7e376f98be6edc2ad7cceca57ed (patch) | |
tree | 8b45f6fc974330f964bad3684ac85550480fb66b /apt-private/private-upgrade.cc | |
parent | 456821f91483f45b3ceb156f54ccc27983b71595 (diff) | |
parent | 51da0c3587c9d36a3c04b3e28b99d8331a29b230 (diff) |
Merge remote-tracking branch 'upstream/debian/sid' into debian/sid
Diffstat (limited to 'apt-private/private-upgrade.cc')
-rw-r--r-- | apt-private/private-upgrade.cc | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/apt-private/private-upgrade.cc b/apt-private/private-upgrade.cc index 68b2c5e00..31f067576 100644 --- a/apt-private/private-upgrade.cc +++ b/apt-private/private-upgrade.cc @@ -23,18 +23,10 @@ static bool UpgradeHelper(CommandLine &CmdL, int UpgradeFlags) return false; c0out << _("Calculating upgrade... ") << std::flush; - if (APT::Upgrade::Upgrade(Cache, UpgradeFlags) == false) - { - c0out << _("Failed") << std::endl; - ShowBroken(c1out,Cache,false); - return _error->Error(_("Internal error, Upgrade broke stuff")); - } + if(!DoCacheManipulationFromCommandLine(CmdL, Cache, UpgradeFlags)) + return false; c0out << _("Done") << std::endl; - // parse additional cmdline pkg manipulation switches - if(!DoCacheManipulationFromCommandLine(CmdL, Cache)) - return false; - return InstallPackages(Cache,true); } |