Merge lp:~gary-lasker/software-center/fix-crash-lp870822 into lp:software-center
Status: | Merged |
---|---|
Merge reported by: | Gary Lasker |
Merged at revision: | not available |
Proposed branch: | lp:~gary-lasker/software-center/fix-crash-lp870822 |
Merge into: | lp:software-center |
Diff against target: |
22 lines (+8/-4) 1 file modified
softwarecenter/ui/gtk3/views/appdetailsview.py (+8/-4) |
To merge this branch: | bzr merge lp:~gary-lasker/software-center/fix-crash-lp870822 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Vogt | Approve | ||
Review via email: mp+104291@code.launchpad.net |
Description of the change
This branch fixes a crash that a few people have gotten when viewing the appdetails pane, see bug 870822. The crash occurs during the calculation of the total size for the package. Under certain conditions, the installed size value is obtained from the cache itself by getting an AptCacheVersion object for the package. The crash occurs when a None is returned for the AptCacheVersion object.
In this case, with this fix we simply display the default "Unknown" value for size, as we have not been able to successfully determine it.
Unfortunately, I have been unable to reproduce this issue myself and so can't provide steps to do so, but we have gotten reports of it as late as software-center 5.2 final, so there are conditions under which it can occur and these conditions exist in our most recent versions.
This is a low-risk fix as we simply detect the None and display "Unknown" for that case.
Thanks for the branch. The fix is fine.
What puzzles me is that it can happen that we get None here when the applicaton says
its in the state "INSTALLED".