Make apt-worker more robust at detecting when a operation would
authormvo <mvo@e55152ac-3a23-0410-980c-f88739b87167>
Fri, 10 Oct 2008 14:29:10 +0000 (14:29 +0000)
committermvo <mvo@e55152ac-3a23-0410-980c-f88739b87167>
Fri, 10 Oct 2008 14:29:10 +0000 (14:29 +0000)
commit8508827dbdd1527e3ea2bc7fddd11f2d38bb443c
tree16d5d55ccdccaa52f09655c136b0055bbd884b1c
parent2a7722c5e4122767ea1ad27f670100fd171589a1
Make apt-worker more robust at detecting when a operation would
leave broken packages behind.

* src/apt-worker.cc (any_newly_broken): New.
* src/apt-worker.cc (cmd_get_package_info): Use it instead of
looking at just the number of broken packages.
* src/apt-worker.cc (mark_for_install_1): Allow broken packages to
be installed again.
* src/apt-worker.cc (cmd_get_package_list): Also flag NowBroken
packages as broken.
* src/details.cc (spd_create_summary_page): List all package
operations for broken packages.

git-svn-id: https://garage.maemo.org/svn/hildon-app-mgr/branches/2.1.x@1415 e55152ac-3a23-0410-980c-f88739b87167
ChangeLog
src/apt-worker.cc
src/details.cc