aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Ferrell <major@homeonderanged.org>2014-04-15 06:16:45 -0700
committerMark Ferrell <major@homeonderanged.org>2014-04-15 06:16:45 -0700
commitb2b247366a40c6195ad17602dd6ee5f0ac4c4b89 (patch)
treed46422c2209cd3fdf28633f9e2978b2581ca1c90
parent3c116bffe12e77a000304934e4676a3387d4a2e1 (diff)
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.
-rwxr-xr-xlibexec/build-query2
1 files changed, 1 insertions, 1 deletions
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)