Merge lp://qastaging/~mterry/update-manager/stop-update into lp://qastaging/update-manager
Proposed by
Michael Terry
Status: | Merged |
---|---|
Merged at revision: | 2538 |
Proposed branch: | lp://qastaging/~mterry/update-manager/stop-update |
Merge into: | lp://qastaging/update-manager |
Diff against target: |
389 lines (+173/-65) 7 files modified
UpdateManager/Dialogs.py (+12/-0) UpdateManager/UpdateManager.py (+31/-14) UpdateManager/UpdateProgress.py (+1/-6) UpdateManager/UpdatesAvailable.py (+36/-36) UpdateManager/backend/InstallBackendAptdaemon.py (+3/-0) data/gtkbuilder/UpdateManager.ui (+40/-9) tests/test_stop_update.py (+50/-0) |
To merge this branch: | bzr merge lp://qastaging/~mterry/update-manager/stop-update |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Vogt (community) | Approve | ||
Review via email:
|
Description of the change
mpt added some dialogs recently to the update-manager experience if the user stops an apt update. See https:/
This branch implements those changes (and does a little minor cleanup in UpdatesAvailable by dropping some support for num_updates == 0 which shouldn't ever happen now, after the redesign).
To post a comment you must log in.
On Mon, Aug 20, 2012 at 02:45:38AM -0000, Michael Terry wrote: pane(UpdateProg ress(self) ) (self): (self, cancelled_update = False): cache() UpdatesAvailabl e.py' UpdatesAvailabl e.py 2012-06-28 00:09:03 +0000 UpdatesAvailabl e.py 2012-08-20 02:44:22 +0000 e(SimpleGtkbuil derApp) :
[..]
> @@ -162,7 +163,7 @@
>
> self._start_
>
> - def start_available
> + def start_available
> self._look_busy()
> self.refresh_
[..]
> === modified file 'UpdateManager/
> --- UpdateManager/
> +++ UpdateManager/
> @@ -81,7 +81,7 @@
>
> class UpdatesAvailabl
>
> - def __init__(self, app):
> + def __init__(self, app, header = None, desc = None):
> self.window_main = app
> self.datadir = app.datadir
> self.options = app.options
pep8 suggests to use "cancelled_ update= False" (no space around the
"=").
Otherwise this looks good, would be nice to have a test, but to get it
in before UIF I'm fine with merging it now.
Thanks,
Michael