~landscape/landscape-client/trunk

Viewing all changes in revision 773.

  • Committer: Tarmac
  • Author(s): Bjorn Tillenius
  • Date: 2014-06-18 09:36:11 UTC
  • mfrom: (772.1.11 trusty-apt-change)
  • Revision ID: tarmac-20140618093611-0caiaqct6pzmd5e5
Merge trusty-apt-change [f=1326940] [r=adam-collard,free.ekanayaka] [a=Björn Tillenius]
Handle broken packages in Trusty.

The apt library changed in Trusty when it comes to dealing with broken
packages. Before Trusty, if a package couldn't be installed due to
dependency issues, is_inst_broken was set to True. In Trusty,
is_inst_broken is True only for packages that are already installed and
broken. For packages that can't be installed, the marked_installation, marked_upgrade and marked_downgrade attributes are simply cleared.

The changes in the AptFacade aren't that big. We now keep track of which
packages we request and check whether it's still marked to be installed,
upgraded or downgraded.

The tests used the apt package directly to change the install state, so
I had to change them to use the facade instead. Otherwise the facade
won't know that the packages are broken.

I also had to change some tests that check for error messages, since
those change in Trusty as well.

The tests pass on both Trusty and Precise.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: