[ubuntu-mono] [Bug 70837] Re: Beagle 'Applications' search doesn't work

Holger Arnold holger at cs.uni-potsdam.de
Sun Mar 25 11:27:08 UTC 2007


I think I have identified the cause of this defect.

The file /etc/cron.daily/beagle-crawl-system contains the line "set -e".
This causes the script to exit immediately when a command exits with a
non-zero value.

The options for beagle-build-index are put together in the following
way:

...
OPTIONS="$OPTIONS `test -n "$CRAWL_CACHE_TEXT" \
        -a "$CRAWL_CACHE_TEXT" = "yes" && \
        echo --enable-text-cache`"
...

If one of the configuration variables $CRAWL_* is set to "no", then the
test command returns a non-zero value.  This causes the script to exit
immediately because of the "set -e" command above.

Sure, the bash documentation says that the script is not exited if the
command "is ... part of '&&'", and I think this is what the author of
this script intended.  But note that the failing command here is *not*
part of an '&&' because the '&&' *is* the failing command.

If the "set -e" line is deleted, then everything works as it should.
Incidentally, the "set -e" line is also not present in the current
beagle version.

-- 
Beagle 'Applications' search doesn't work
https://launchpad.net/bugs/70837




More information about the Ubuntu-mono mailing list