summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2005-11-19 12:30:41 +0000
committerrillig <rillig@pkgsrc.org>2005-11-19 12:30:41 +0000
commitf31a09a613ae930696c8de36089ed8cfd33a5137 (patch)
treec382b4c458993c02c6dbf729372c98985a9a3c4e /mk
parent0e5596048edfa189e2a45dd962273f7c55d64a83 (diff)
downloadpkgsrc-f31a09a613ae930696c8de36089ed8cfd33a5137.tar.gz
If the directory of a dependency does not exist, fail instead of (almost)
silently skipping the dependency.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index ae011a0190c..9c1db3e1e2b 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1761 2005/11/18 17:07:13 tv Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1762 2005/11/19 12:30:41 rillig Exp $
#
# This file is in the public domain.
#
@@ -3638,7 +3638,8 @@ install-depends: pre-install-depends
target=${DEPENDS_TARGET:Q}; \
${ECHO_MSG} "${_PKGSRC_IN}> Verifying $$target for $$dir"; \
if [ ! -d $$dir ]; then \
- ${ECHO_MSG} "=> No directory for $$dir. Skipping.."; \
+ ${ECHO_MSG} "=> [bsd.pkg.mk] error: The directory $$dir does not exist."; \
+ exit 1; \
else \
cd $$dir ; \
${SETENV} _PKGSRC_DEPS=", ${PKGNAME}${_PKGSRC_DEPS}" PKGNAME_REQD=\'$$pkg\' ${MAKE} ${MAKEFLAGS} _AUTOMATIC=YES $$target || exit 1; \