Merge lp:~osomon/software-center/fix_appstore_update into lp:software-center
Proposed by
Olivier Tilloy
Status: | Merged |
---|---|
Merged at revision: | 816 |
Proposed branch: | lp:~osomon/software-center/fix_appstore_update |
Merge into: | lp:software-center |
Diff against target: |
33 lines (+6/-1) 2 files modified
softwarecenter/view/appview.py (+5/-1) softwarecenter/view/channelpane.py (+1/-0) |
To merge this branch: | bzr merge lp:~osomon/software-center/fix_appstore_update |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gary Lasker (community) | Approve | ||
Review via email: mp+26327@code.launchpad.net |
Description of the change
This branch fixes updating an existing AppStore with a new one. There were two issues:
1) Before an update, the model's "active" attribute was set to False to avoid catching signals while being updated, but it was never set back to True afterwards.
2) In the update itself, the internal (package name -> index) map was incorrectly filled with integers instead of lists of integers (and it was not cleared in the first place), leaving it in an inconsisten state.
I'm not aware if there is a bug report for this already, I can file one if needed.
To post a comment you must log in.
Great catch, thanks a lot, Olivier! I made two small changes when merging, please take a look to make sure you see no problem with them:
1. Also include a clear() for the app_index_map in the appstore's update() method. view.get_ model() .active = True in channelpane as that is always initialized when the new appstore is created.
2. Drop the self.app_