Packagekit fixes
Created by: SunilMohanAdapa
This pull request fixes the next release blocker: package installations fail when package list is not up-to-date.
- Refresh package list before trying to install packages. Also lookup the ID of the package, including the version, using the newly fetched package list.
- Call on_install() callback requested by modules only if the package installation was successful. Handle any exception raised in the callback itself.
- Handle exceptions raised during packagekit operations. Also check the returned results for error code.
- Capture error/success status during a transaction. Don't destroy the transaction object until the error/success status has been collected. When a view is refreshed after completion of a transaction collect the result of the transaction and show it to the user.
- Handle cases where package searches in the package list fails. Simply show the package name without its description.
- Handle speed updates during installation