Merge lp:~rbalint/update-manager/lp-1795898-upgrade-workaround-bionic into lp:~ubuntu-core-dev/update-manager/bionic

Proposed by Balint Reczey
Status: Merged
Merged at revision: 2831
Proposed branch: lp:~rbalint/update-manager/lp-1795898-upgrade-workaround-bionic
Merge into: lp:~ubuntu-core-dev/update-manager/bionic
Diff against target: 38 lines (+13/-5)
2 files modified
UpdateManager/backend/InstallBackendAptdaemon.py (+12/-4)
debian/changelog (+1/-1)
To merge this branch: bzr merge lp:~rbalint/update-manager/lp-1795898-upgrade-workaround-bionic
Reviewer Review Type Date Requested Status
Julian Andres Klode Approve
Brian Murray Pending
Review via email: mp+356155@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Julian Andres Klode (juliank) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'UpdateManager/backend/InstallBackendAptdaemon.py'
2--- UpdateManager/backend/InstallBackendAptdaemon.py 2018-10-03 23:15:25 +0000
3+++ UpdateManager/backend/InstallBackendAptdaemon.py 2018-10-04 19:43:59 +0000
4@@ -241,10 +241,18 @@
5 # tell unity to hide the progress again
6 self.unity.set_progress(-1)
7 is_success = (status == EXIT_SUCCESS)
8- self._action_done(action,
9- authorized=True, success=is_success,
10- error_string=error_string, error_desc=error_desc,
11- trans_failed=trans_failed)
12+ try:
13+ self._action_done(action,
14+ authorized=True, success=is_success,
15+ error_string=error_string, error_desc=error_desc,
16+ trans_failed=trans_failed)
17+ except TypeError:
18+ # this module used to be be lazily imported and in older code
19+ # trans_failed= is not accepted
20+ # TODO: this workaround can be dropped in Ubuntu 20.10
21+ self._action_done(action,
22+ authorized=True, success=is_success,
23+ error_string=error_string, error_desc=error_desc)
24
25
26 if __name__ == "__main__":
27
28=== modified file 'debian/changelog'
29--- debian/changelog 2018-10-03 23:15:25 +0000
30+++ debian/changelog 2018-10-04 19:43:59 +0000
31@@ -10,7 +10,7 @@
32 * Cancel transaction on exit only when Cancel button is active.
33 Also ignore exception when cancellation fails. (LP: #1790670)
34
35- -- Balint Reczey <rbalint@ubuntu.com> Wed, 03 Oct 2018 23:06:18 +0200
36+ -- Balint Reczey <rbalint@ubuntu.com> Thu, 04 Oct 2018 21:33:57 +0200
37
38 update-manager (1:18.04.11.5) bionic; urgency=medium
39

Subscribers

People subscribed via source and target branches