forked from pool/gnome-software
Accepting request 387684 from home:mgorse:branches:GNOME:Factory
- Add gnome-software-icon-crash.patch: fix crash when unable to find icon (boo#974806 bgo#764921). OBS-URL: https://build.opensuse.org/request/show/387684 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-software?expand=0&rev=78
This commit is contained in:
parent
070bd8e78b
commit
287d13874e
26
gnome-software-icon-crash.patch
Normal file
26
gnome-software-icon-crash.patch
Normal file
@ -0,0 +1,26 @@
|
||||
From 2911419f0d496e3f0e8708cfed75e5cecee2226b Mon Sep 17 00:00:00 2001
|
||||
From: Mike Gorse <mgorse@suse.com>
|
||||
Date: Mon, 11 Apr 2016 16:53:14 -0500
|
||||
Subject: [PATCH] Don't crash if unable to find a cached icon
|
||||
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=764921
|
||||
---
|
||||
src/plugins/gs-appstream.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/plugins/gs-appstream.c b/src/plugins/gs-appstream.c
|
||||
index 4ddd0d2..953dc7e 100644
|
||||
--- a/src/plugins/gs-appstream.c
|
||||
+++ b/src/plugins/gs-appstream.c
|
||||
@@ -87,7 +87,7 @@ gs_refine_item_pixbuf (GsPlugin *plugin, GsApp *app, AsApp *item)
|
||||
icon = as_app_get_icon_for_size (item, 64, 64);
|
||||
if (icon == NULL) {
|
||||
g_warning ("failed to find cached icon %s",
|
||||
- as_icon_get_name (icon));
|
||||
+ as_app_get_name (item, NULL));
|
||||
return;
|
||||
}
|
||||
if (!as_icon_load (icon, AS_ICON_LOAD_FLAG_SEARCH_SIZE, &error)) {
|
||||
--
|
||||
2.6.2
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 11 22:06:54 UTC 2016 - mgorse@suse.com
|
||||
|
||||
- Add gnome-software-icon-crash.patch: fix crash when unable to
|
||||
find icon (boo#974806 bgo#764921).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 21 14:42:27 UTC 2016 - dimstar@opensuse.org
|
||||
|
||||
|
@ -29,6 +29,8 @@ Source: http://download.gnome.org/sources/gnome-software/3.20/%{name}-%{
|
||||
Patch0: gnome-software-PK-updates.patch
|
||||
# PATCH-FEATURE-OPENSUSE gnome-software-add-default-yast-appfolder.patch boo#897713 badshah400@gmail.com -- Adds a YaST app-folder by default, in addition to existing app-folders Sundry and Utilities
|
||||
Patch1: gnome-software-add-default-yast-appfolder.patch
|
||||
# PATCH-FIX-UPSTREAM gnome-software-icon-crash.patch boo#974806 mgorse@suse.com -- don't crash if unable to find a cached icon.
|
||||
Patch2: gnome-software-icon-crash.patch
|
||||
BuildRequires: intltool >= 0.35.0
|
||||
BuildRequires: suse-xsl-stylesheets
|
||||
BuildRequires: update-desktop-files
|
||||
@ -62,6 +64,7 @@ AppStore like management of Applications for your GNOME Desktop.
|
||||
# Disables - let's try the systemd offline updater
|
||||
#patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
%configure \
|
||||
|
Loading…
x
Reference in New Issue
Block a user