From b2b247366a40c6195ad17602dd6ee5f0ac4c4b89 Mon Sep 17 00:00:00 2001 From: Mark Ferrell Date: Tue, 15 Apr 2014 06:16:45 -0700 Subject: Fix 'build query --exists' * Changes in a previous commit which attempted to fixup an edge-case failure in '--exists' managed to break it for all cases. --- libexec/build-query | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/build-query b/libexec/build-query index f84aca5..ec02ef6 100755 --- a/libexec/build-query +++ b/libexec/build-query @@ -100,7 +100,7 @@ while [ "$#" -gt "0" ]; do (-D|-destdir|--destdir) QUERY_ACTION="destdir";; (--exists) - test -e "${BUILD_PKGDIR}/${1}/Buildrules" && exit 0 || exit 1;; + test -e "${BUILDER_PKGDIR}/${2}/Buildrules" && exit 0 || exit 1;; (-e|-envdir|--envdir) QUERY_ACTION="envdir";; (-E|-environ|--environ) -- cgit v1.2.3-18-g5258