about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xxlocate5
1 files changed, 2 insertions, 3 deletions
diff --git a/xlocate b/xlocate
index 49b6ac5..2eec04a 100755
--- a/xlocate
+++ b/xlocate
@@ -81,7 +81,6 @@ if [ -d "$XLOCATE_GIT" ]; then
 	git -c grep.lineNumber=false --git-dir="$XLOCATE_GIT" grep -- "$@" @ |
 		sed 's/^@://; s/:/\t/' | grep .
 else
-	echo "xlocate: database not found, using xbps-query." 1>&2
-	xbps-query --regex -Ro '.*'"$@" |
-		sed 's/ *([^)]*)$//; s/^\([^ ]*\)-[^-]*: /\1\t/'
+	echo "xlocate: database not found, please use xlocate -S." 1>&2
+	exit 1
 fi