diff options
author | jlam <jlam@pkgsrc.org> | 2003-09-13 11:32:04 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2003-09-13 11:32:04 +0000 |
commit | d4dafa1f49e83d698385febf09025b4fd3b842b1 (patch) | |
tree | 50c98b80919dae8455d400ffe37e2d453680cd5e | |
parent | 22c47fcaf007265789eaf5635d8999d26f343480 (diff) | |
download | pkgsrc-d4dafa1f49e83d698385febf09025b4fd3b842b1.tar.gz |
We just depend on the package that best matches the pkgpattern, so remove
the unreachable code surrounded by checks for matching multiple packages.
-rw-r--r-- | mk/bsd.pkg.mk | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index e47a58f8e40..9d7dc203d2c 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1278 2003/09/13 11:23:35 jlam Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1279 2003/09/13 11:32:04 jlam Exp $ # # This file is in the public domain. # @@ -3959,13 +3959,7 @@ install-depends: uptodate-pkgtools exit 1; \ fi; \ fi; \ - if [ `${ECHO} $$found | ${WC} -w` -gt 1 ]; then \ - ${ECHO} '***' "WARNING: Dependency on '$$found' expands to several installed packages " ; \ - ${ECHO} " (" `${ECHO} $$found` ")." ; \ - ${ECHO} " Please check if this is really intended!" ; \ - else \ - ${ECHO_MSG} "${_PKGSRC_IN}> Required installed package $$pkg: $${found} found"; \ - fi ; \ + ${ECHO_MSG} "${_PKGSRC_IN}> Required installed package $$pkg: $${found} found"; \ else \ ${ECHO_MSG} "${_PKGSRC_IN}> Required package $$pkg: NOT found"; \ target=${DEPENDS_TARGET}; \ @@ -4601,15 +4595,6 @@ fake-pkg: ${PLIST} ${DESCR} ${MESSAGE} fi; \ fi; \ list="`${MAKE} ${MAKEFLAGS} run-depends-list PACKAGE_DEPENDS_QUICK=true ECHO_MSG=${TRUE} | ${SORT} -u`" ; \ - for dep in $$list; do \ - realdep="`${PKG_BEST_EXISTS} \"$$dep\" || ${TRUE}`" ; \ - if [ `${ECHO} $$realdep | ${WC} -w` -gt 1 ]; then \ - ${ECHO} '***' "WARNING: '$$dep' expands to several installed packages " ; \ - ${ECHO} " (" `${ECHO} $$realdep` ")." ; \ - ${ECHO} " Please check if this is really intended!" ; \ - continue ; \ - fi ; \ - done ; \ for realdep in `${ECHO} $$list | ${XARGS} -n 1 ${SETENV} ${PKG_BEST_EXISTS} | ${SORT} -u`; do \ if ${TEST} -z "$$realdep"; then \ ${ECHO} "$$dep not installed - dependency NOT registered" ; \ |