Package: dlocate Version: 0.5-0.1 Followup-For: Bug #123777 Very simple, just exits with whatever the call to locate exited with, if locate was run.
-- Sam Morris http://robots.org.uk/ PGP key id 5EA01078 3412 EA18 1277 354B 991B C869 B219 7FDB 5EA0 1078
--- /usr/bin/dlocate.distrib 2002-03-11 22:33:17.000000000 +0000 +++ /usr/bin/dlocate 2005-05-10 13:07:17.123761889 +0100 @@ -88,6 +88,7 @@ ;; "-S") $LOCATE -d $DLOCATEDB $PKG | grep ":.*$PKG.*" + result=$? ;; "-s") if [ -e $DPKG_INFO/$PKG.list ] ; then @@ -151,6 +152,7 @@ ;; *) $LOCATE -d $DLOCATEDB "$PKG" + result=$? ;; esac @@ -158,4 +160,4 @@ PKG=$1 done - +test -n "$result" && exit $result