[gnome-software/mwleeds/fix-deprecated-install: 2/9] flatpak: Fix capitalization of boolean value in tests
- From: Phaedrus Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/mwleeds/fix-deprecated-install: 2/9] flatpak: Fix capitalization of boolean value in tests
- Date: Tue, 30 Nov 2021 18:54:51 +0000 (UTC)
commit 69a442eddd6146f530182f20e72ab20797583646
Author: Phaedrus Leeds <mwleeds protonmail com>
Date: Mon Oct 11 15:45:25 2021 -0700
flatpak: Fix capitalization of boolean value in tests
GLib recognizes "false" but not "False" as false in
g_key_file_get_boolean(). However, because that function returns false
when either the value is false or the function errored out (genius!),
and libflatpak doesn't check for an error in this case, the incorrect
spelling usually has no effect. But with the recent changes in
gs_flatpak_file_to_app_ref(), the "False" spelling leads to a failure of
the unit tests.
plugins/flatpak/gs-self-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/flatpak/gs-self-test.c b/plugins/flatpak/gs-self-test.c
index f284a695f..9b3db0125 100644
--- a/plugins/flatpak/gs-self-test.c
+++ b/plugins/flatpak/gs-self-test.c
@@ -56,7 +56,7 @@ gs_flatpak_test_write_ref_file (const gchar *filename, const gchar *url, const g
g_string_append (str, "Name=org.test.Chiron\n");
g_string_append (str, "Branch=master\n");
g_string_append_printf (str, "Url=%s\n", url);
- g_string_append (str, "IsRuntime=False\n");
+ g_string_append (str, "IsRuntime=false\n");
g_string_append (str, "Comment=Single line synopsis\n");
g_string_append (str, "Description=A Testing Application\n");
g_string_append (str, "Icon=https://getfedora.org/static/images/fedora-logotext.png\n");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]