Blame SOURCES/0001-Lower-AsStore-new-API-version-checks-for-Fedora.patch

d9c815
From f91c54a70860ed12270bbafa121acae36f29badb Mon Sep 17 00:00:00 2001
d9c815
From: Kalev Lember <klember@redhat.com>
d9c815
Date: Tue, 18 Dec 2018 02:44:31 +0100
d9c815
Subject: [PATCH] Lower AsStore new API version checks for Fedora
d9c815
d9c815
We have new the AsStore thread safety patches along with new thread safe
d9c815
API backported to libappstream-glib-0.7.14-3.fc29.
d9c815
---
d9c815
 plugins/core/gs-appstream.c        | 12 ++++++------
d9c815
 plugins/core/gs-plugin-appstream.c | 12 ++++++------
d9c815
 plugins/flatpak/gs-flatpak.c       |  2 +-
d9c815
 3 files changed, 13 insertions(+), 13 deletions(-)
d9c815
d9c815
diff --git a/plugins/core/gs-appstream.c b/plugins/core/gs-appstream.c
d9c815
index b7bccd19a..7b606fe0d 100644
d9c815
--- a/plugins/core/gs-appstream.c
d9c815
+++ b/plugins/core/gs-appstream.c
d9c815
@@ -860,7 +860,7 @@ gs_appstream_store_search (GsPlugin *plugin,
d9c815
 	gboolean ret = TRUE;
d9c815
 	g_autoptr(GPtrArray) array = NULL;
d9c815
 
d9c815
-#if AS_CHECK_VERSION(0,7,15)
d9c815
+#if AS_CHECK_VERSION(0,7,14)
d9c815
 	array = as_store_dup_apps (store);
d9c815
 #else
d9c815
 	array = g_ptr_array_ref (as_store_get_apps (store));
d9c815
@@ -937,7 +937,7 @@ gs_appstream_store_add_category_apps (GsPlugin *plugin,
d9c815
 	g_autoptr(GPtrArray) array = NULL;
d9c815
 
d9c815
 	/* just look at each app in turn */
d9c815
-#if AS_CHECK_VERSION(0,7,15)
d9c815
+#if AS_CHECK_VERSION(0,7,14)
d9c815
 	array = as_store_dup_apps (store);
d9c815
 #else
d9c815
 	array = g_ptr_array_ref (as_store_get_apps (store));
d9c815
@@ -985,7 +985,7 @@ gs_appstream_store_add_categories (GsPlugin *plugin,
d9c815
 	g_autoptr(GPtrArray) array = NULL;
d9c815
 
d9c815
 	/* find out how many packages are in each category */
d9c815
-#if AS_CHECK_VERSION(0,7,15)
d9c815
+#if AS_CHECK_VERSION(0,7,14)
d9c815
 	array = as_store_dup_apps (store);
d9c815
 #else
d9c815
 	array = g_ptr_array_ref (as_store_get_apps (store));
d9c815
@@ -1013,7 +1013,7 @@ gs_appstream_add_popular (GsPlugin *plugin,
d9c815
 {
d9c815
 	g_autoptr(GPtrArray) array = NULL;
d9c815
 
d9c815
-#if AS_CHECK_VERSION(0,7,15)
d9c815
+#if AS_CHECK_VERSION(0,7,14)
d9c815
 	array = as_store_dup_apps (store);
d9c815
 #else
d9c815
 	array = g_ptr_array_ref (as_store_get_apps (store));
d9c815
@@ -1059,7 +1059,7 @@ gs_appstream_add_recent (GsPlugin *plugin,
d9c815
 {
d9c815
 	g_autoptr(GPtrArray) array = NULL;
d9c815
 
d9c815
-#if AS_CHECK_VERSION(0,7,15)
d9c815
+#if AS_CHECK_VERSION(0,7,14)
d9c815
 	array = as_store_dup_apps (store);
d9c815
 #else
d9c815
 	array = g_ptr_array_ref (as_store_get_apps (store));
d9c815
@@ -1088,7 +1088,7 @@ gs_appstream_add_featured (GsPlugin *plugin,
d9c815
 {
d9c815
 	g_autoptr(GPtrArray) array = NULL;
d9c815
 
d9c815
-#if AS_CHECK_VERSION(0,7,15)
d9c815
+#if AS_CHECK_VERSION(0,7,14)
d9c815
 	array = as_store_dup_apps (store);
d9c815
 #else
d9c815
 	array = g_ptr_array_ref (as_store_get_apps (store));
d9c815
diff --git a/plugins/core/gs-plugin-appstream.c b/plugins/core/gs-plugin-appstream.c
d9c815
index 77d004162..ce0ca9bda 100644
d9c815
--- a/plugins/core/gs-plugin-appstream.c
d9c815
+++ b/plugins/core/gs-plugin-appstream.c
d9c815
@@ -56,7 +56,7 @@ gs_plugin_appstream_create_app_hash (AsStore *store)
d9c815
 
d9c815
 	hash = g_hash_table_new_full (g_str_hash, g_str_equal,
d9c815
 				      g_free, (GDestroyNotify) g_object_unref);
d9c815
-#if AS_CHECK_VERSION(0,7,15)
d9c815
+#if AS_CHECK_VERSION(0,7,14)
d9c815
 	apps = as_store_dup_apps (store);
d9c815
 #else
d9c815
 	apps = g_ptr_array_ref (as_store_get_apps (store));
d9c815
@@ -290,7 +290,7 @@ gs_plugin_setup (GsPlugin *plugin, GCancellable *cancellable, GError **error)
d9c815
 			return FALSE;
d9c815
 		}
d9c815
 	}
d9c815
-#if AS_CHECK_VERSION(0,7,15)
d9c815
+#if AS_CHECK_VERSION(0,7,14)
d9c815
 	items = as_store_dup_apps (priv->store);
d9c815
 #else
d9c815
 	items = g_ptr_array_ref (as_store_get_apps (priv->store));
d9c815
@@ -391,7 +391,7 @@ gs_plugin_refine_from_id (GsPlugin *plugin,
d9c815
 		g_autoptr(GPtrArray) apps_merge = NULL;
d9c815
 
d9c815
 		g_debug ("no app with ID %s found in system appstream", unique_id);
d9c815
-#if AS_CHECK_VERSION(0,7,15)
d9c815
+#if AS_CHECK_VERSION(0,7,14)
d9c815
 		apps = as_store_dup_apps (priv->store);
d9c815
 #else
d9c815
 		apps = g_ptr_array_ref (as_store_get_apps (priv->store));
d9c815
@@ -405,7 +405,7 @@ gs_plugin_refine_from_id (GsPlugin *plugin,
d9c815
 		}
d9c815
 
d9c815
 		/* fall back to trying to get a merge app */
d9c815
-#if AS_CHECK_VERSION(0,7,15)
d9c815
+#if AS_CHECK_VERSION(0,7,14)
d9c815
 		apps_merge = as_store_dup_apps_by_id_merge (priv->store, gs_app_get_id (app));
d9c815
 		for (guint i = 0; i < apps_merge->len; i++) {
d9c815
 			item = g_ptr_array_index (apps_merge, i);
d9c815
@@ -472,7 +472,7 @@ gs_plugin_add_distro_upgrades (GsPlugin *plugin,
d9c815
 	g_autoptr(GPtrArray) array = NULL;
d9c815
 
d9c815
 	/* find any upgrades */
d9c815
-#if AS_CHECK_VERSION(0,7,15)
d9c815
+#if AS_CHECK_VERSION(0,7,14)
d9c815
 	array = as_store_dup_apps (priv->store);
d9c815
 #else
d9c815
 	array = g_ptr_array_ref (as_store_get_apps (priv->store));
d9c815
@@ -620,7 +620,7 @@ gs_plugin_add_installed (GsPlugin *plugin,
d9c815
 	g_autoptr(GPtrArray) array = NULL;
d9c815
 
d9c815
 	/* search categories for the search term */
d9c815
-#if AS_CHECK_VERSION(0,7,15)
d9c815
+#if AS_CHECK_VERSION(0,7,14)
d9c815
 	array = as_store_dup_apps (priv->store);
d9c815
 #else
d9c815
 	array = g_ptr_array_ref (as_store_get_apps (priv->store));
d9c815
diff --git a/plugins/flatpak/gs-flatpak.c b/plugins/flatpak/gs-flatpak.c
d9c815
index b835d843c..921fd12e9 100644
d9c815
--- a/plugins/flatpak/gs-flatpak.c
d9c815
+++ b/plugins/flatpak/gs-flatpak.c
d9c815
@@ -328,7 +328,7 @@ gs_flatpak_add_apps_from_xremote (GsFlatpak *self,
d9c815
 	}
d9c815
 
d9c815
 	/* override the *AppStream* origin */
d9c815
-#if AS_CHECK_VERSION(0,7,15)
d9c815
+#if AS_CHECK_VERSION(0,7,14)
d9c815
 	apps = as_store_dup_apps (store);
d9c815
 #else
d9c815
 	apps = g_ptr_array_ref (as_store_get_apps (store));
d9c815
-- 
d9c815
2.19.1
d9c815