[gnome-software: 1/2] gs-update-dialog: Fix a typo in version comparison




commit 775b76edb8a934ac1850dbd9e2a2915682e3a93b
Author: Philip Withnall <pwithnall endlessos org>
Date:   Mon Nov 16 10:52:47 2020 +0000

    gs-update-dialog: Fix a typo in version comparison
    
    If gnome-software was compiled against appstream-glib ≥ 0.7.15, the
    release wasn’t getting compared.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>
    
    Helps: #935

 src/gs-update-dialog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gs-update-dialog.c b/src/gs-update-dialog.c
index cd3c0b67..2bc2f136 100644
--- a/src/gs-update-dialog.c
+++ b/src/gs-update-dialog.c
@@ -452,7 +452,7 @@ is_downgrade (const gchar *evr1,
 
        /* check release */
 #if AS_CHECK_VERSION(0,7,15)
-       rc = as_utils_vercmp_full (version1, version2,
+       rc = as_utils_vercmp_full (release1, release2,
                                   AS_VERSION_COMPARE_FLAG_NONE);
 #else
        rc = as_utils_vercmp (release1, release2);


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