commit 33e0bf1ed766a7e15a1c0464639f0e8ac37e385d
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Jul 5 19:27:52 2020 +0200
portal: Allow prefixed names in graph constraints
So it is not necessary to use the full IRI in order to specify a graph
in a flatpak build specification file.
src/portal/tracker-portal-endpoint.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/portal/tracker-portal-endpoint.c b/src/portal/tracker-portal-endpoint.c
index 56478df2c..c1d26bb83 100644
--- a/src/portal/tracker-portal-endpoint.c
+++ b/src/portal/tracker-portal-endpoint.c
@@ -115,11 +115,13 @@ tracker_portal_endpoint_add_prologue (TrackerEndpointDBus *endpoint_dbus)
g_string_append (str, ", ");
if (g_strcmp0 (endpoint->graphs[i], GRAPH_ALL) == 0)
- g_string_append (str, "ALL");
+ g_string_append (str, "ALL ");
else if (g_strcmp0 (endpoint->graphs[i], GRAPH_DEFAULT) == 0)
- g_string_append (str, "DEFAULT");
+ g_string_append (str, "DEFAULT ");
+ else if (strstr (endpoint->graphs[i], ":/"))
+ g_string_append_printf (str, "<%s> ", endpoint->graphs[i]);
else
- g_string_append_printf (str, "<%s>", endpoint->graphs[i]);
+ g_string_append_printf (str, "%s ", endpoint->graphs[i]);
}
endpoint->prologue = g_string_free (str, FALSE);