[gnome-software/gnome-3-30] Fix the appstream-glib version check for as_utils_vercmp_full



commit 6c94dbf5e4c350f2efd8acd6fd9a3ed8ca9a9a02
Author: Kalev Lember <klember redhat com>
Date:   Wed Oct 24 14:49:36 2018 +0200

    Fix the appstream-glib version check for as_utils_vercmp_full
    
    It was added in 0.7.15, not 0.7.14.

 lib/gs-plugin-loader.c | 2 +-
 src/gs-update-dialog.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c
index b84a0ba6..93e39490 100644
--- a/lib/gs-plugin-loader.c
+++ b/lib/gs-plugin-loader.c
@@ -1423,7 +1423,7 @@ gs_plugin_loader_app_sort_match_value_cb (GsApp *app1, GsApp *app2, gpointer use
 static gint
 gs_plugin_loader_app_sort_version_cb (GsApp *app1, GsApp *app2, gpointer user_data)
 {
-#if AS_CHECK_VERSION(0,7,14)
+#if AS_CHECK_VERSION(0,7,15)
        return as_utils_vercmp_full (gs_app_get_version (app1),
                                     gs_app_get_version (app2),
                                     AS_VERSION_COMPARE_FLAG_NONE);
diff --git a/src/gs-update-dialog.c b/src/gs-update-dialog.c
index e92cd5b8..b4c1b118 100644
--- a/src/gs-update-dialog.c
+++ b/src/gs-update-dialog.c
@@ -374,7 +374,7 @@ is_downgrade (const gchar *evr1,
         * part of the semantic version */
 
        /* check version */
-#if AS_CHECK_VERSION(0,7,14)
+#if AS_CHECK_VERSION(0,7,15)
        rc = as_utils_vercmp_full (version1, version2,
                                   AS_VERSION_COMPARE_FLAG_NONE);
 #else
@@ -384,7 +384,7 @@ is_downgrade (const gchar *evr1,
                return rc > 0;
 
        /* check release */
-#if AS_CHECK_VERSION(0,7,14)
+#if AS_CHECK_VERSION(0,7,15)
        rc = as_utils_vercmp_full (version1, version2,
                                   AS_VERSION_COMPARE_FLAG_NONE);
 #else


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]