1
0

Accepting request 812411 from home:JonathanKang:branches:GNOME:Factory

- Add gnome-software-failed-offline-update-notification.patch:
  plugin-loader: handle offline update errors properly(bsc#1161095,
  glgo#GNOME/gnome-software!471).

OBS-URL: https://build.opensuse.org/request/show/812411
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-software?expand=0&rev=183
This commit is contained in:
Bjørn Lie 2020-06-10 19:23:00 +00:00 committed by Git OBS Bridge
parent 89a841230d
commit 34f077b824
3 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,33 @@
From 61f710f401a340600df2e3c4758c2fe156ad1f04 Mon Sep 17 00:00:00 2001
From: Jonathan Kang <jonathankang@gnome.org>
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

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Jun 8 02:55:54 UTC 2020 - Jonathan Kang <songchuan.kang@suse.com>
- 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 <bjorn.lie@gmail.com> Fri May 22 18:13:46 UTC 2020 - Bjørn Lie <bjorn.lie@gmail.com>

View File

@ -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. # 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 Patch0: gnome-software-launch-gpk-update-viewer-for-updates.patch
%endif %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: gtk-doc
BuildRequires: meson >= 0.47.0 BuildRequires: meson >= 0.47.0