[tracker/rss-enclosures] miners/fs: GB#615836 remove tracker:mountPoint before setting it
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] miners/fs: GB#615836 remove tracker:mountPoint before setting it
- Date: Mon, 3 May 2010 00:43:54 +0000 (UTC)
commit 13d6863cd5f3646c74ec12e4f0ff8e515b219658
Author: Philip Van Hoof <philip codeminded be>
Date: Fri Apr 23 14:51:54 2010 +0200
miners/fs: GB#615836 remove tracker:mountPoint before setting it
This problem made the group of queries, among which was the query unsetting
tracker:available, fail. Latter property was the origin of the bug report.
src/miners/fs/tracker-miner-files.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index 5e55576..62950e4 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -552,6 +552,15 @@ set_up_mount_point (TrackerMinerFiles *miner,
uri = g_file_get_uri (file);
g_string_append_printf (queries,
+ "DELETE FROM <%s> { "
+ " <%s> tracker:mountPoint ?u "
+ "} WHERE { "
+ " ?u a nfo:FileDataObject; "
+ " nie:url \"%s\" "
+ "} ",
+ removable_device_urn, removable_device_urn, uri);
+
+ g_string_append_printf (queries,
"DROP GRAPH <%s> "
"INSERT INTO <%s> { "
" <%s> a tracker:Volume; "
@@ -560,7 +569,7 @@ set_up_mount_point (TrackerMinerFiles *miner,
" ?u a nfo:FileDataObject; "
" nie:url \"%s\" "
"}",
- removable_device_urn, removable_device_urn, removable_device_urn, uri);
+ removable_device_urn, removable_device_urn, removable_device_urn, uri);
g_object_unref (file);
g_free (uri);
@@ -1433,7 +1442,7 @@ extractor_get_embedded_metadata_cb (DBusGProxy *proxy,
"} WHERE { "
" ?u a nfo:FileDataObject; "
" nie:url \"%s\" "
- "}",
+ "} ",
removable_device_urn, removable_device_urn, uri);
tracker_sparql_builder_append (data->sparql, queries->str);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]