Skip to content
Snippets Groups Projects
Commit 440fffc5 authored by Xavier Claessens's avatar Xavier Claessens Committed by Sjoerd Simons
Browse files

tracker: Add extra check to verify tracker-extract has run

Summary:
"?urn nie:dataSource tracker:extractor-data-source" is a
property added by tracker-extract when it adds all metadata.

Reviewers: smcv, pwith

Differential Revision: https://phabricator.apertis.org/D399
parent bdcdd455
No related branches found
No related tags found
No related merge requests found
......@@ -111,9 +111,13 @@ class TrackerIndexer():
self.loop.run()
def assert_indexed(self, path, extra=None):
# Select entries for the given URL. Also check that is has the
# tracker:extractor-data-source flag added by tracker-extract when
# metadata has been extracted.
query = ('select ?urn where { '
' ?urn nie:url "file://%s" ; '
' tracker:available true . ') % (path)
' tracker:available true ; '
' nie:dataSource tracker:extractor-data-source . ') % (path)
if extra is not None:
query += extra
query += ' }'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment