1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

- Rework "missing" target to invoke pkg_info once, running pkg_info -O for each

dependency was very time consuming

PR:		ports/146829
Submitted by:	Yuri Pankov <yuri.pankov@gmail.com>
This commit is contained in:
Pav Lucistnik 2010-06-02 11:40:48 +00:00
parent 083caba9b4
commit d338afe891
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=255513

View File

@ -5533,11 +5533,11 @@ package-recursive: package
# Show missing dependiencies
missing:
@for dir in $$(${ALL-DEPENDS-LIST}); do \
THISORIGIN=$${dir##${PORTSDIR}/}; \
installed=$$(${PKG_INFO} -qO $${THISORIGIN}); \
if [ -z "$$installed" ]; then \
${ECHO_CMD} $$THISORIGIN; \
@_origins=$$(${PKG_INFO} -aoq); \
for dir in $$(${ALL-DEPENDS-LIST}); do \
_origin=$${dir##${PORTSDIR}/}; \
if ! $$(${ECHO_CMD} $${_origins} | ${GREP} -q $${_origin}); then \
${ECHO_CMD} $${_origin}; \
fi; \
done