Merge lp:~bjornt/landscape-client/apt-facade-changer-fixes into lp:~landscape/landscape-client/trunk
Status: | Merged |
---|---|
Approved by: | Thomas Herve |
Approved revision: | 432 |
Merged at revision: | 401 |
Proposed branch: | lp:~bjornt/landscape-client/apt-facade-changer-fixes |
Merge into: | lp:~landscape/landscape-client/trunk |
Diff against target: | 0 lines |
To merge this branch: | bzr merge lp:~bjornt/landscape-client/apt-facade-changer-fixes |
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Thomas Herve (community) | Approve | ||
Alberto Donato (community) | Approve | ||
Review via email: mp+81979@code.launchpad.net |
Description of the change
Fixes to AptFacade that is needed for the package changer to work:
1) Fix mark_upgrade() to upgrade the package to the latest version,
instead of upgrading to the version that is passed in.
2) Don't do anything if you try to upgrade a package that is already
at the latest version.
3) Raise a TransactionError if something goes wrong committing the
changes to the Apt cache.
4) Take the Package object into account, when comparing Version
objects to find out which dependencies are needed for
I was expecting these fixes to be smaller, but the branch is still quite
small, so I didn't bother splitting it up, since they changes are
related.
Looks good! +1
#1: upgrade_ no_upgrade( self):
+ def test_mark_
+ """
+ If the candidate version of a package already is installed,
typo, should be "is already installed".