tags 577205 patch
thanks

I checked the output of tracker-search, it looks like this:

tracker 0.6.96:

# tracker-search linus
Defaulting to 'files' service
Results: 4
  /home/michael/docs/Git_Community_Book.pdf
  /home/michael/docs/ch04.pdf
  /home/michael/docs/iptables-tutorial.pdf
  /home/michael/docs/linuxsymposium2006-vol-2.pdf
...

tracker 0.8.1

# tracker-search linus
Results: 35
  file:///home/michael/debian/rsyslog/plugins/imklog/ksym.c
  file:///home/michael/debian/sysvinit/doc/Changelog
  file:///home/michael/debian/udisks/NEWS

The problem, is the leading whitespace in front of the search result.
I've attached a simple patch, which fixes it for me and makes catfish work both
with tracker 0.6 and 0.8.

Regards,
Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
#! /bin/sh /usr/share/dpatch/dpatch-run
## 30Fix_tracker_backend.dpatch by Michael Biebl <bi...@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' 
'--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' catfish-0.3.2~/catfish.py 
catfish-0.3.2/catfish.py
--- catfish-0.3.2~/catfish.py   2010-04-13 02:01:04.000000000 +0200
+++ catfish-0.3.2/catfish.py    2010-04-13 02:01:17.249556252 +0200
@@ -629,6 +629,7 @@
                     if self.options.debug: print 'Debug:', msg
                     query = generic_query()
                 for filename in query.run(keywords, folder, exact, hidden, 
limit):
+                    filename = filename.strip()
                     if self.abort_find or len(listmodel) == limit: break
                     filename = filename.split(os.linesep)[0]
                     # Convert uris to filenames

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to