summaryrefslogtreecommitdiff
path: root/mk/flavor
diff options
context:
space:
mode:
authortron <tron>2008-05-26 14:21:43 +0000
committertron <tron>2008-05-26 14:21:43 +0000
commitb0dffa99861813e548e82204f463134efd2e8081 (patch)
tree122a1e829a5834bf51fd113ef382545bfd5b2819 /mk/flavor
parent9a6dad3d65357627674e97e4e97727f7fd54fced (diff)
downloadpkgsrc-b0dffa99861813e548e82204f463134efd2e8081.tar.gz
Fix broken shell code:
You must *not* use "test ... && ..." when you use "set -e". Because if the first expression fails your shell script will abort. This should fix problem with NetBSD-current's (correctly behaving) "/bin/sh" report on current-users by David Holland and Kurt Schreiner.
Diffstat (limited to 'mk/flavor')
-rw-r--r--mk/flavor/pkg/depends.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/flavor/pkg/depends.mk b/mk/flavor/pkg/depends.mk
index c02c7e5f76a..eaaaf28f0eb 100644
--- a/mk/flavor/pkg/depends.mk
+++ b/mk/flavor/pkg/depends.mk
@@ -1,4 +1,4 @@
-# $NetBSD: depends.mk,v 1.42 2008/04/03 14:07:51 joerg Exp $
+# $NetBSD: depends.mk,v 1.43 2008/05/26 14:21:43 tron Exp $
# This command prints out the dependency patterns for all full (run-time)
# dependencies of the package.
@@ -122,7 +122,7 @@ _flavor-install-dependencies: .PHONY ${_DEPENDS_FILE}
exec 3<&0; \
${CAT} ${_DEPENDS_FILE} | \
while read type pattern dir; do \
- ${TEST} "$$type" = "bootstrap" && continue; \
+ ${TEST} "$$type" != "bootstrap" || continue; \
${_DEPENDS_INSTALL_CMD} 0<&3; \
done
@@ -167,7 +167,7 @@ bootstrap-depends: ${_BOOTSTRAP_DEPENDS_TARGETS}
_flavor-bootstrap-depends:
${RUN}${_LIST_DEPENDS_CMD.bootstrap} | \
while read type pattern dir; do \
- ${TEST} "$$type" != "bootstrap" && continue; \
+ ${TEST} "$$type" = "bootstrap" || continue; \
${_DEPENDS_INSTALL_CMD}; \
done