diff --git a/gnome-software-failed-offline-update-notification.patch b/gnome-software-failed-offline-update-notification.patch new file mode 100644 index 0000000..9e6168d --- /dev/null +++ b/gnome-software-failed-offline-update-notification.patch @@ -0,0 +1,33 @@ +From 61f710f401a340600df2e3c4758c2fe156ad1f04 Mon Sep 17 00:00:00 2001 +From: Jonathan Kang +Date: Fri, 5 Jun 2020 09:02:12 +0800 +Subject: [PATCH] plugin-loader: handle offline update errors properly + +Fix the issue that no notification after a failed offline update. + +https://gitlab.gnome.org/GNOME/gnome-software/-/issues/666 +--- + lib/gs-plugin-loader.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c +index 979f3d5d..585353ba 100644 +--- a/lib/gs-plugin-loader.c ++++ b/lib/gs-plugin-loader.c +@@ -410,6 +410,13 @@ gs_plugin_error_handle_failure (GsPluginLoaderHelper *helper, + return FALSE; + } + ++ /* offline updates */ ++ if (gs_plugin_job_get_action (helper->plugin_job) == GS_PLUGIN_ACTION_GET_UPDATES_HISTORICAL) { ++ if (error != NULL) ++ *error = g_error_copy (error_local); ++ return FALSE; ++ } ++ + /* create event which is handled by the GsShell */ + event = gs_plugin_job_to_failed_event (helper->plugin_job, error_local); + +-- +2.26.2 + diff --git a/gnome-software.changes b/gnome-software.changes index ab3ee14..a857a8a 100644 --- a/gnome-software.changes +++ b/gnome-software.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Jun 8 02:55:54 UTC 2020 - Jonathan Kang + +- Add gnome-software-failed-offline-update-notification.patch: + plugin-loader: handle offline update errors properly(bsc#1161095, + glgo#GNOME/gnome-software!471). + ------------------------------------------------------------------- Fri May 22 18:13:46 UTC 2020 - Bjørn Lie diff --git a/gnome-software.spec b/gnome-software.spec index 66c1b6c..395eef0 100644 --- a/gnome-software.spec +++ b/gnome-software.spec @@ -29,6 +29,8 @@ Source0: https://download.gnome.org/sources/gnome-software/3.36/%{name}-% # PATCH-FIX-OPENSUSE gnome-software-launch-gpk-update-viewer-for-updates.patch bsc#1077332 boo#1090042 sckang@suse.com -- Don't launch gnome-software when clicking the updates notification. Launch gpk-update-viewer instead. Patch0: gnome-software-launch-gpk-update-viewer-for-updates.patch %endif +# PATCH-FIX-UPSTREAM gnome-software-failed-offline-update-notification.patch bsc#1161095 glgo#GNOME/gnome-software!471 sckang@suse.com -- plugin-loader: handle offline update errors properly. +Patch1: gnome-software-failed-offline-update-notification.patch BuildRequires: gtk-doc BuildRequires: meson >= 0.47.0