From ace45ddf4e7427451f7b0eabf19de0ec3ca7ccb3 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Tue, 7 Oct 2025 14:01:04 -0600 Subject: [PATCH] ubuntu-release-upgrader: prevent break gtk client when no package candidate summanry --- ...nt_package_with_no_candidate_summary_break.patch | 13 +++++++++++++ helpers/make-ubuntu-release-upgrader | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 helpers/DATA/ubuntu-release-upgrader/patch_changes/005-prevent_package_with_no_candidate_summary_break.patch diff --git a/helpers/DATA/ubuntu-release-upgrader/patch_changes/005-prevent_package_with_no_candidate_summary_break.patch b/helpers/DATA/ubuntu-release-upgrader/patch_changes/005-prevent_package_with_no_candidate_summary_break.patch new file mode 100644 index 0000000..5bba0a6 --- /dev/null +++ b/helpers/DATA/ubuntu-release-upgrader/patch_changes/005-prevent_package_with_no_candidate_summary_break.patch @@ -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, ["%s - %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) diff --git a/helpers/make-ubuntu-release-upgrader b/helpers/make-ubuntu-release-upgrader index 148fb7f..4b8d1ec 100644 --- a/helpers/make-ubuntu-release-upgrader +++ b/helpers/make-ubuntu-release-upgrader @@ -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.