Merge lp:~bjornt/landscape-client/update-package-profile-repo into lp:~landscape/landscape-client/trunk
Status: | Merged |
---|---|
Approved by: | Free Ekanayaka |
Approved revision: | 513 |
Merged at revision: | 513 |
Proposed branch: | lp:~bjornt/landscape-client/update-package-profile-repo |
Merge into: | lp:~landscape/landscape-client/trunk |
Diff against target: | 0 lines |
To merge this branch: | bzr merge lp:~bjornt/landscape-client/update-package-profile-repo |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Free Ekanayaka (community) | Approve | ||
Thomas Herve (community) | Approve | ||
Review via email: mp+97352@code.launchpad.net |
Description of the change
Make sure package profiles get added to the facade cache, before trying
to install them.
Before, if the change-packages message contained binaries, they would be
added to the repo on disk, but the facade didn't reread the Packages
file, so when trying to install the binary it couldn't find it, thus
needing to wait for the reporter to update the package information.
I've made it possible to force a re-read of the Packages file. Ideally
we would update only our internal repo, but since the API for updating a
single source.list file isn't available in Lucid, I went for updating
everything for now. We can make it more efficient later.
I also changed the semantics of ensure_
won't reload if reload_channels() has been called already, to avoid
having the change-packages handler reload the channels twice.
Looks great, +1. Maybe you can link the bug opened with a XXX.