[Tracker] problems with filters and output on stdout



Hi everyone,

apparently with 0.6.90, the filters were changed from having two
arguments (input file $1, output file $2) to having only one argument
(input file $1) and reading the output from stdout. I noticed that
while porting a debian patch for application/msword_filter to 0.6.90
(see attached patch)

Apparently it was forgotten, to cat $tmptxtfile to stdout.
What I got instead was this

Could not find required program 'elinks' or 'links'
Using lynx. Ouput will be pretty ugly.

Apparently, wvText always prints this message to stdout, even if it
successfully transforms a doc document to txt.
I'm not sure if other tools behave like that, but there is a risk,
that we get noise in the search results.

We either change back to the two argument style, or to be safe update
all invocations of external tools in filter scrips to use
2 &> 1  /dev/null.

Cheers,
Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: use_mktemp.patch
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]