Merge lp:~brian-murray/update-manager/bug-1826213 into lp:update-manager

Proposed by Brian Murray
Status: Merged
Merged at revision: 2888
Proposed branch: lp:~brian-murray/update-manager/bug-1826213
Merge into: lp:update-manager
Diff against target: 50 lines (+16/-2)
2 files modified
UpdateManager/UpdateManager.py (+7/-2)
debian/changelog (+9/-0)
To merge this branch: bzr merge lp:~brian-murray/update-manager/bug-1826213
Reviewer Review Type Date Requested Status
Ubuntu Core Development Team Pending
Review via email: mp+384673@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'UpdateManager/UpdateManager.py'
--- UpdateManager/UpdateManager.py 2020-04-08 15:56:20 +0000
+++ UpdateManager/UpdateManager.py 2020-05-27 20:25:14 +0000
@@ -235,6 +235,9 @@
235 self._look_busy()235 self._look_busy()
236 self.refresh_cache()236 self.refresh_cache()
237237
238 if self.cache is None:
239 return
240
238 pane = self._make_available_pane(self.cache.install_count241 pane = self._make_available_pane(self.cache.install_count
239 + self.cache.del_count,242 + self.cache.del_count,
240 os.path.exists(REBOOT_REQUIRED_FILE),243 os.path.exists(REBOOT_REQUIRED_FILE),
@@ -376,7 +379,8 @@
376 "Please use the package manager \"Synaptic\" or run "379 "Please use the package manager \"Synaptic\" or run "
377 "\"sudo apt-get install -f\" in a terminal to fix "380 "\"sudo apt-get install -f\" in a terminal to fix "
378 "this issue at first.")381 "this issue at first.")
379 self.start_error(True, header, desc)382 self.start_error(False, header, desc)
383 return
380 except SystemError as e:384 except SystemError as e:
381 header = _("Could not initialize the package information")385 header = _("Could not initialize the package information")
382 desc = _("An unresolvable problem occurred while "386 desc = _("An unresolvable problem occurred while "
@@ -384,7 +388,8 @@
384 "Please report this bug against the 'update-manager' "388 "Please report this bug against the 'update-manager' "
385 "package and include the following error "389 "package and include the following error "
386 "message:\n") + str(e)390 "message:\n") + str(e)
387 self.start_error(True, header, desc)391 self.start_error(False, header, desc)
392 return
388393
389 # Let the Gtk event loop breath if it hasn't had a chance.394 # Let the Gtk event loop breath if it hasn't had a chance.
390 def iterate():395 def iterate():
391396
=== modified file 'debian/changelog'
--- debian/changelog 2020-04-23 17:47:54 +0000
+++ debian/changelog 2020-05-27 20:25:14 +0000
@@ -1,3 +1,12 @@
1update-manager (1:20.04.11) UNRELEASED; urgency=medium
2
3 * UpdateManager/UpdateManager.py: when refreshing the cache and encountering
4 an error return rather than trying to use the undefined cache which causes
5 crashes. Additionally, don't present the dialog with a "Try Again" button
6 which won't do anything. (LP: #1826213)
7
8 -- Brian Murray <brian@ubuntu.com> Wed, 27 May 2020 11:45:53 -0700
9
1update-manager (1:20.04.10) focal; urgency=medium10update-manager (1:20.04.10) focal; urgency=medium
211
3 * Fix intermittent hang during snap updates (LP: #1874469).12 * Fix intermittent hang during snap updates (LP: #1874469).

Subscribers

People subscribed via source and target branches

to status/vote changes: