From 359747ec797498cd43b9b7c3fdb23cb272e66b2a Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Tue, 21 May 2019 20:25:59 -0400 Subject: [PATCH] Fix XMD comparison Comparison of the XMDs were accidentally returning the opposite truth value. Signed-off-by: Stephen Gallagher --- modulemd/v2/modulemd-module-stream-v1.c | 2 +- modulemd/v2/modulemd-module-stream-v2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modulemd/v2/modulemd-module-stream-v1.c b/modulemd/v2/modulemd-module-stream-v1.c index 4c26f33be..34df203be 100644 --- a/modulemd/v2/modulemd-module-stream-v1.c +++ b/modulemd/v2/modulemd-module-stream-v1.c @@ -1075,7 +1075,7 @@ modulemd_module_stream_v1_equals (ModulemdModuleStream *self_1, if (v1_self_1->xmd == NULL || v1_self_2->xmd == NULL) return FALSE; - if (g_variant_equal (v1_self_1->xmd, v1_self_2->xmd) != 0) + if (!g_variant_equal (v1_self_1->xmd, v1_self_2->xmd)) return FALSE; return TRUE; diff --git a/modulemd/v2/modulemd-module-stream-v2.c b/modulemd/v2/modulemd-module-stream-v2.c index 24b72a860..ca0beae47 100644 --- a/modulemd/v2/modulemd-module-stream-v2.c +++ b/modulemd/v2/modulemd-module-stream-v2.c @@ -231,7 +231,7 @@ modulemd_module_stream_v2_equals (ModulemdModuleStream *self_1, if (v2_self_1->xmd == NULL || v2_self_2->xmd == NULL) return FALSE; - if (g_variant_equal (v2_self_1->xmd, v2_self_2->xmd) != 0) + if (!g_variant_equal (v2_self_1->xmd, v2_self_2->xmd)) return FALSE; return TRUE;