ubuntu-release-upgrader: prevent break gtk client when no package candidate summanry

This commit is contained in:
Ark74 2025-10-07 14:01:04 -06:00
parent d107772b60
commit ace45ddf4e
2 changed files with 14 additions and 1 deletions

View file

@ -0,0 +1,13 @@
diff --git a/DistUpgrade/DistUpgradeViewGtk3.py b/DistUpgrade/DistUpgradeViewGtk3.py
index f656c611..a291e321 100644
--- a/DistUpgrade/DistUpgradeViewGtk3.py
+++ b/DistUpgrade/DistUpgradeViewGtk3.py
@@ -736,7 +736,7 @@ class DistUpgradeViewGtk3(DistUpgradeView,SimpleGtkbuilderApp):
[parent_text % len(details_list)])
for pkg in details_list:
self.details_list.append(node, ["<b>%s</b> - %s" % (
- pkg.name, GLib.markup_escape_text(getattr(pkg.candidate, "summary", None)))])
+ pkg.name, GLib.markup_escape_text(getattr(pkg.candidate, "summary", "") or ""))])
# prepare dialog
self.dialog_changes.realize()
self.dialog_changes.set_transient_for(self.window_main)

View file

@ -25,7 +25,7 @@
# Also, don't forget to update the meta-release files at archive and packages.t.i
# The "obsoletes" list from ubuntu has been removed
VERSION=17
VERSION=18
. ./config
# Previous upstream release name, update for each release.