[gnome-software/gnome-3-26] trivial: allow dist'ing with no gnome-software installed
- From: Joaquim Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-26] trivial: allow dist'ing with no gnome-software installed
- Date: Fri, 23 Feb 2018 16:10:42 +0000 (UTC)
commit 49593faf67b6bf02e33e8027b6004ae394fc25d3
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 file changed, 4 insertions(+)
---
diff --git a/plugins/flatpak/gs-self-test.c b/plugins/flatpak/gs-self-test.c
index 7090bf82..c8ad3d4a 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]