[gnome-documents/gnome-3-8] miner: fix cleaning up of old resources



commit 7c3ef6d6d420705d64e2738c1cedc991c55315ef
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 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/miner/gd-miner.c b/src/miner/gd-miner.c
index 473021e..ac592f2 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]