From: Zeeshan Ali (Khattak) Date: Thu, 12 Nov 2009 12:53:37 +0000 (+0200) Subject: tracker: Correct RDF query in 'search' X-Git-Tag: RYGEL_0_4_6~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a2607b12d88471c521e000e771ba90c6029a188d;p=profile%2Fivi%2Frygel.git tracker: Correct RDF query in 'search' "File:Path" means path to the directory containing the file rather than path of the file itself. Full points goes to Mr. Jamie McCracken for coming-up with this. --- diff --git a/src/plugins/tracker/rygel-tracker-search-container.vala b/src/plugins/tracker/rygel-tracker-search-container.vala index d4c9f8a..e5a2831 100644 --- a/src/plugins/tracker/rygel-tracker-search-container.vala +++ b/src/plugins/tracker/rygel-tracker-search-container.vala @@ -214,13 +214,24 @@ public class Rygel.TrackerSearchContainer : Rygel.MediaContainer { out parent_id, out service); if (path != null) { + var dir = Path.get_dirname (path); + var basename = Path.get_basename (path); + var search_condition = - "\n" + - "\n" + - "" + path + - "\n" + - "\n"; + "\n" + + "\n" + + "\n" + + "" + dir + + "\n" + + "\n" + + "\n" + + "\n" + + "" + basename + + "\n" + + "\n" + + "\n"; if (this.query_condition != "") { query = "\n" +