[gnome-software/gnome-3-34] snap: Fix channel versions not matching due to inverted logic



commit 994342d2067594c999a98c44af7bec0b0ecc530a
Author: Robert Ancell <robert ancell canonical com>
Date:   Mon Dec 16 16:33:22 2019 +1300

    snap: Fix channel versions not matching due to inverted logic

 plugins/snap/gs-plugin-snap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c
index c701e2f8..4d038e63 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -916,7 +916,7 @@ gs_plugin_refine_app (GsPlugin *plugin,
                for (i = 0; i < channels->len; i++) {
                        SnapdChannel *c = channels->pdata[i];
 
-                       if (g_strcmp0 (snapd_channel_get_name (c), channel) == 0)
+                       if (g_strcmp0 (snapd_channel_get_name (c), channel) != 0)
                                continue;
 
                        gs_app_set_version (app, snapd_channel_get_version (c));


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