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



commit 2fe7c89dc611835b39665ccec07d5fc1d8fdc22d
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 +-
 plugins/core/gs-appstream.c | 2 +-
 src/gs-update-dialog.c      | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c
index 109eda9a..cb29f94c 100644
--- a/lib/gs-plugin-loader.c
+++ b/lib/gs-plugin-loader.c
@@ -1379,7 +1379,7 @@ gs_plugin_loader_app_sort_prio_cb (GsApp *app1, GsApp *app2, gpointer user_data)
 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/plugins/core/gs-appstream.c b/plugins/core/gs-appstream.c
index ffdff8b7..4a2742b6 100644
--- a/plugins/core/gs-appstream.c
+++ b/plugins/core/gs-appstream.c
@@ -665,7 +665,7 @@ gs_appstream_refine_app (GsPlugin *plugin,
                                   "requires/id[@type='id']"
                                   "[text()='org.gnome.Software.desktop']", NULL);
        if (req != NULL) {
-#if AS_CHECK_VERSION(0,7,14)
+#if AS_CHECK_VERSION(0,7,15)
                gint rc = as_utils_vercmp_full (xb_node_get_attr (req, "version"),
                                                PACKAGE_VERSION,
                                                AS_VERSION_COMPARE_FLAG_NONE);
diff --git a/src/gs-update-dialog.c b/src/gs-update-dialog.c
index 23a2d193..29a349b9 100644
--- a/src/gs-update-dialog.c
+++ b/src/gs-update-dialog.c
@@ -375,7 +375,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
@@ -385,7 +385,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]