Merge lp:~mterry/update-manager/stop-update into lp:update-manager
Proposed by
Michael Terry
on 2012-08-20
| Status: | Merged |
|---|---|
| Merged at revision: | 2538 |
| Proposed branch: | lp:~mterry/update-manager/stop-update |
| Merge into: | lp: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:~mterry/update-manager/stop-update |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Michael Vogt | 2012-08-20 | Approve on 2012-08-24 | |
|
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.
| Michael Vogt (mvo) wrote : | # |
review:
Approve
lp:~mterry/update-manager/stop-update
updated
on 2012-08-24
- 2536. By Michael Terry on 2012-08-24
-
merge from trunk
- 2537. By Michael Terry on 2012-08-24
-
merge from trunk again
- 2538. By Michael Terry on 2012-08-24
-
fix pep8 and pyflakes issues
- 2539. By Michael Terry on 2012-08-24
-
adjust code to make the UpdateManager class slightly easier to unit test; add tests for stop-update code

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