[gnome-software] trivial: allow dist'ing with no gnome-software installed
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: allow dist'ing with no gnome-software installed
- Date: Fri, 8 Sep 2017 10:18:27 +0000 (UTC)
commit aeacbd75881efc59d1b3d848609b2c062e079238
Author: Richard Hughes <richard hughsie com>
Date: Tue Sep 5 11:52:08 2017 +0100
trivial: allow dist'ing with no gnome-software installed
Fixes:
GLib-GIO-ERROR **: Settings schema 'org.gnome.software' does not contain a
key named 'external-appstream-system-wide'
plugins/flatpak/gs-self-test.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/flatpak/gs-self-test.c b/plugins/flatpak/gs-self-test.c
index 7090bf8..c8ad3d4 100644
--- a/plugins/flatpak/gs-self-test.c
+++ b/plugins/flatpak/gs-self-test.c
@@ -1480,6 +1480,10 @@ main (int argc, char **argv)
g_setenv ("G_MESSAGES_DEBUG", "all", TRUE);
g_setenv ("GS_SELF_TEST_FLATPAK_DATADIR", tmp_root, TRUE);
+ /* allow dist'ing with no gnome-software installed */
+ if (g_getenv ("GS_SELF_TEST_SKIP_ALL") != NULL)
+ return 0;
+
/* ensure test root does not exist */
if (g_file_test (tmp_root, G_FILE_TEST_EXISTS)) {
ret = gs_utils_rmtree (tmp_root, &error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]