Update to 3.15.4

This commit is contained in:
Richard Hughes 2015-01-19 11:34:54 +00:00
parent 4bfeebc025
commit f234e60227
4 changed files with 6 additions and 88 deletions

1
.gitignore vendored
View File

@ -34,3 +34,4 @@
/gnome-software-3.14.1.tar.xz /gnome-software-3.14.1.tar.xz
/gnome-software-3.14.2.tar.xz /gnome-software-3.14.2.tar.xz
/gnome-software-3.15.2.tar.xz /gnome-software-3.15.2.tar.xz
/gnome-software-3.15.4.tar.xz

View File

@ -1,82 +0,0 @@
From 6944d17219db313d4624dc5ff918b5fa0ed71fce Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard@hughsie.com>
Date: Tue, 11 Nov 2014 13:24:53 +0000
Subject: [PATCH] trivial: Fix compile when using appstream-glib <= 0.3.2
---
src/plugins/gs-plugin-appstream.c | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/src/plugins/gs-plugin-appstream.c b/src/plugins/gs-plugin-appstream.c
index 4f6f2d4..b4f3714 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -125,6 +125,7 @@ gs_plugin_destroy (GsPlugin *plugin)
g_object_unref (plugin->priv->store);
}
+#if AS_CHECK_VERSION(0,3,2)
/**
* gs_plugin_appstream_get_origins_hash:
*
@@ -172,6 +173,7 @@ gs_plugin_appstream_get_origins_hash (GPtrArray *array)
g_list_free (keys);
return origins;
}
+#endif
/**
* gs_plugin_startup:
@@ -179,16 +181,18 @@ gs_plugin_appstream_get_origins_hash (GPtrArray *array)
static gboolean
gs_plugin_startup (GsPlugin *plugin, GError **error)
{
- AsApp *app;
- GHashTable *origins = NULL;
GPtrArray *items;
gboolean ret;
- const gchar *origin;
gchar *tmp;
- guint *perc;
#if AS_CHECK_VERSION(0,3,1)
guint i;
#endif
+#if AS_CHECK_VERSION(0,3,2)
+ AsApp *app;
+ GHashTable *origins = NULL;
+ const gchar *origin;
+ guint *perc;
+#endif
/* clear all existing applications if the store was invalidated */
as_store_remove_all (plugin->priv->store);
@@ -227,6 +231,7 @@ gs_plugin_startup (GsPlugin *plugin, GError **error)
}
/* add search terms for apps not in the main source */
+#if AS_CHECK_VERSION(0,3,2)
origins = gs_plugin_appstream_get_origins_hash (items);
for (i = 0; i < items->len; i++) {
app = g_ptr_array_index (items, i);
@@ -240,6 +245,7 @@ gs_plugin_startup (GsPlugin *plugin, GError **error)
as_app_add_keyword (app, NULL, origin, -1);
}
}
+#endif
/* look for any application with a HiDPI icon kudo */
#if AS_CHECK_VERSION(0,3,1)
@@ -252,8 +258,10 @@ gs_plugin_startup (GsPlugin *plugin, GError **error)
}
#endif
out:
+#if AS_CHECK_VERSION(0,3,2)
if (origins != NULL)
g_hash_table_unref (origins);
+#endif
gs_profile_stop (plugin->profile, "appstream::startup");
return ret;
}
--
2.1.0

View File

@ -6,7 +6,7 @@
Summary: A software center for GNOME Summary: A software center for GNOME
Name: gnome-software Name: gnome-software
Version: 3.15.2 Version: 3.15.4
Release: 1%{?dist} Release: 1%{?dist}
License: GPLv2+ License: GPLv2+
Group: Applications/System Group: Applications/System
@ -16,9 +16,6 @@ Source0: http://download.gnome.org/sources/gnome-software/3.15/%{name}-%{versi
# Downstream patch to the list of unremovable system apps # Downstream patch to the list of unremovable system apps
Patch0: gnome-software-system-apps.patch Patch0: gnome-software-system-apps.patch
# upstream patch
Patch1: 0001-trivial-Fix-compile-when-using-appstream-glib-0.3.2.patch
Requires: appstream-data Requires: appstream-data
%if 0%{?fedora} %if 0%{?fedora}
Requires: epiphany-runtime Requires: epiphany-runtime
@ -54,7 +51,6 @@ and update software in the GNOME desktop.
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .system-apps %patch0 -p1 -b .system-apps
%patch1 -p1 -b .fix-old-appstream-glib
%build %build
%configure --disable-static %configure --disable-static
@ -113,6 +109,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%{_datadir}/gnome-software/modulesets.d/*.xml %{_datadir}/gnome-software/modulesets.d/*.xml
%changelog %changelog
* Mon Jan 19 2015 Richard Hughes <rhughes@redhat.com> - 3.15.4-1
- Update to 3.15.4
* Tue Nov 25 2014 Kalev Lember <kalevlember@gmail.com> - 3.15.2-1 * Tue Nov 25 2014 Kalev Lember <kalevlember@gmail.com> - 3.15.2-1
- Update to 3.15.2 - Update to 3.15.2

View File

@ -1 +1 @@
12af6a47296d96545f0a1f74f7354df0 gnome-software-3.15.2.tar.xz 98907eb9ef3e6e6880cbaca4e578c81c gnome-software-3.15.4.tar.xz