[gnome-documents] miner: fix cleaning up of old resources
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] miner: fix cleaning up of old resources
- Date: Mon, 1 Apr 2013 22:57:02 +0000 (UTC)
commit 2af2a636d8b291e4a6e40b337621004b56660024
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Apr 1 18:25:05 2013 -0400
miner: fix cleaning up of old resources
We don't use the datasource graph, so previous code was not going to
work. Fix it by just selecting all the resources associated with the
datasoure URN.
https://bugzilla.gnome.org/show_bug.cgi?id=696928
src/miner/gd-miner.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/miner/gd-miner.c b/src/miner/gd-miner.c
index 88ef522..9631145 100644
--- a/src/miner/gd-miner.c
+++ b/src/miner/gd-miner.c
@@ -497,9 +497,7 @@ cleanup_job_do_cleanup (CleanupJob *job)
"DELETE {"
" ?u a rdfs:Resource"
"} WHERE {"
- " GRAPH <%s> {"
- " ?u a rdfs:Resource"
- " }"
+ " ?u nie:dataSource <%s>"
"}",
resource);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]