Blame SOURCES/0001-Lower-as_utils_vercmp_full-version-check-for-Fedora.patch

28717e
From 96f516a4e01b00094919c6c365d804a109b5875f Mon Sep 17 00:00:00 2001
28717e
From: Kalev Lember <klember@redhat.com>
28717e
Date: Wed, 24 Oct 2018 15:00:59 +0200
28717e
Subject: [PATCH] Lower as_utils_vercmp_full version check for Fedora
28717e
28717e
We have new as_utils_vercmp_full API backported to
28717e
libappstream-glib-0.7.14-2.fc29.
28717e
---
28717e
 lib/gs-plugin-loader.c | 2 +-
28717e
 src/gs-update-dialog.c | 4 ++--
28717e
 2 files changed, 3 insertions(+), 3 deletions(-)
28717e
28717e
diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c
28717e
index 93e394906..b84a0ba65 100644
28717e
--- a/lib/gs-plugin-loader.c
28717e
+++ b/lib/gs-plugin-loader.c
28717e
@@ -1423,7 +1423,7 @@ gs_plugin_loader_app_sort_match_value_cb (GsApp *app1, GsApp *app2, gpointer use
28717e
 static gint
28717e
 gs_plugin_loader_app_sort_version_cb (GsApp *app1, GsApp *app2, gpointer user_data)
28717e
 {
28717e
-#if AS_CHECK_VERSION(0,7,15)
28717e
+#if AS_CHECK_VERSION(0,7,14)
28717e
 	return as_utils_vercmp_full (gs_app_get_version (app1),
28717e
 	                             gs_app_get_version (app2),
28717e
 	                             AS_VERSION_COMPARE_FLAG_NONE);
28717e
diff --git a/src/gs-update-dialog.c b/src/gs-update-dialog.c
28717e
index b4c1b1187..e92cd5b87 100644
28717e
--- a/src/gs-update-dialog.c
28717e
+++ b/src/gs-update-dialog.c
28717e
@@ -374,7 +374,7 @@ is_downgrade (const gchar *evr1,
28717e
 	 * part of the semantic version */
28717e
 
28717e
 	/* check version */
28717e
-#if AS_CHECK_VERSION(0,7,15)
28717e
+#if AS_CHECK_VERSION(0,7,14)
28717e
 	rc = as_utils_vercmp_full (version1, version2,
28717e
 	                           AS_VERSION_COMPARE_FLAG_NONE);
28717e
 #else
28717e
@@ -384,7 +384,7 @@ is_downgrade (const gchar *evr1,
28717e
 		return rc > 0;
28717e
 
28717e
 	/* check release */
28717e
-#if AS_CHECK_VERSION(0,7,15)
28717e
+#if AS_CHECK_VERSION(0,7,14)
28717e
 	rc = as_utils_vercmp_full (version1, version2,
28717e
 	                           AS_VERSION_COMPARE_FLAG_NONE);
28717e
 #else
28717e
-- 
28717e
2.19.1
28717e