[gnome-software] snap: Fix channel versions not matching due to inverted logic
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] snap: Fix channel versions not matching due to inverted logic
- Date: Wed, 18 Dec 2019 19:39:37 +0000 (UTC)
commit 9fd8890895220367940e3ab2db99e7b21f7ad0eb
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 88d2e2a0..11634b52 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -904,7 +904,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;
version = snapd_channel_get_version (c);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]