diff options
author | hubertf <hubertf@pkgsrc.org> | 2000-06-23 23:41:43 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2000-06-23 23:41:43 +0000 |
commit | 77d97c2d755f4004ff98afac2b65057782588dd1 (patch) | |
tree | 0a79488eb05d9380d8b8a73dacabe755081b83fd /mk | |
parent | ccc83061d31da6753c67f4bd066709d60b1ca5e6 (diff) | |
download | pkgsrc-77d97c2d755f4004ff98afac2b65057782588dd1.tar.gz |
In package-depends, don't print warnings about non-existing dir
if the information from that dir isn't used.
Reviewed by: wiz
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 9a5e78d0429..ba4d9460be4 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.481 2000/06/19 01:24:16 hubertf Exp $ +# $NetBSD: bsd.pkg.mk,v 1.482 2000/06/23 23:41:43 hubertf Exp $ # # This file is in the public domain. # @@ -2238,19 +2238,23 @@ package-depends: pkg="${dep:C/:.*//}"; \ dir="${dep:C/[^:]*://}"; \ cd ${.CURDIR}; \ - if cd $$dir 2>/dev/null; then \ - if ${PACKAGE_DEPENDS_WITH_PATTERNS}; then \ - ${ECHO} "$$pkg"; \ - else \ + if ${PACKAGE_DEPENDS_WITH_PATTERNS}; then \ + ${ECHO} "$$pkg"; \ + else \ + if cd $$dir 2>/dev/null; then \ ${MAKE} ${MAKEFLAGS} package-name PACKAGE_NAME_TYPE=${PACKAGE_NAME_TYPE}; \ - fi; \ - if ${PACKAGE_DEPENDS_QUICK} ; then \ - ${PKG_INFO} -qf "$$pkg" | ${AWK} '/^@pkgdep/ {print $$2}'; \ else \ + ${ECHO_MSG} "Warning: \"$$dir\" non-existent -- @pkgdep registration incomplete" >&2; \ + fi; \ + fi; \ + if ${PACKAGE_DEPENDS_QUICK} ; then \ + ${PKG_INFO} -qf "$$pkg" | ${AWK} '/^@pkgdep/ {print $$2}'; \ + else \ + if cd $$dir 2>/dev/null; then \ ${MAKE} ${MAKEFLAGS} package-depends PACKAGE_NAME_TYPE=${PACKAGE_NAME_TYPE}; \ - fi ; \ - else \ - ${ECHO_MSG} "Warning: \"$$dir\" non-existent -- @pkgdep registration incomplete" >&2; \ + else \ + ${ECHO_MSG} "Warning: \"$$dir\" non-existent -- @pkgdep registration incomplete" >&2; \ + fi; \ fi .endfor .for dep in ${RUN_DEPENDS} @@ -2723,7 +2727,7 @@ COMMON_DIRS!= ${AWK} 'BEGIN { \ .if !target(print-PLIST) print-PLIST: - @${ECHO} '@comment $$NetBSD: bsd.pkg.mk,v 1.481 2000/06/19 01:24:16 hubertf Exp $$' + @${ECHO} '@comment $$NetBSD: bsd.pkg.mk,v 1.482 2000/06/23 23:41:43 hubertf Exp $$' @${FIND} ${PREFIX}/. -newer ${EXTRACT_COOKIE} \! -type d \ | ${SED} s@${PREFIX}/./@@ \ | sort \ |