[tracker/wip/rishi/non-native: 8/8] libtracker-miner: foo
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/rishi/non-native: 8/8] libtracker-miner: foo
- Date: Mon, 29 Jan 2018 22:37:49 +0000 (UTC)
commit f366e9b400f6dffb225d3b6a47653bfb38184364
Author: Debarshi Ray <debarshir gnome org>
Date: Sat Jan 20 19:17:34 2018 +0100
libtracker-miner: foo
src/libtracker-miner/tracker-file-system.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-file-system.c b/src/libtracker-miner/tracker-file-system.c
index b775b85..f174b0d 100644
--- a/src/libtracker-miner/tracker-file-system.c
+++ b/src/libtracker-miner/tracker-file-system.c
@@ -243,6 +243,7 @@ file_tree_lookup (GNode *tree,
if (!G_NODE_IS_ROOT (tree)) {
FileNodeData *parent_data;
+ gchar *parent_scheme;
gchar *parent_uri;
parent_data = tree->data;
@@ -256,9 +257,13 @@ file_tree_lookup (GNode *tree,
ptr += strlen (parent_uri);
- g_assert (ptr[0] == '/');
- ptr++;
+ parent_scheme = g_file_get_uri_scheme (parent_data->file);
+ if (g_strcmp0 (parent_scheme, "file") == 0) {
+ g_assert (ptr[0] == '/');
+ ptr++;
+ }
+ g_free (parent_scheme);
g_free (parent_uri);
} else {
FileNodeData *root_data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]