diff options
author | rillig <rillig@pkgsrc.org> | 2007-09-06 08:24:12 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-09-06 08:24:12 +0000 |
commit | af6cc8cfa019172ca94946fe64b9c92e0b511035 (patch) | |
tree | 8ab5956d4cf4d1fb55e0159de2fa769955bbf009 | |
parent | 7461413f6b50b8c725762563258fae50e7329c75 (diff) | |
download | pkgsrc-af6cc8cfa019172ca94946fe64b9c92e0b511035.tar.gz |
Why do things in a simple way when there is a complicated alternative?
-rw-r--r-- | mk/bsd.pkg.update.mk | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/mk/bsd.pkg.update.mk b/mk/bsd.pkg.update.mk index 6e0cfc975b3..2217a9803c8 100644 --- a/mk/bsd.pkg.update.mk +++ b/mk/bsd.pkg.update.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.update.mk,v 1.7 2006/10/05 12:56:27 rillig Exp $ +# $NetBSD: bsd.pkg.update.mk,v 1.8 2007/09/06 08:24:12 rillig Exp $ # # This Makefile fragment is included by bsd.pkg.mk and contains the targets # and variables for "make update". @@ -125,16 +125,10 @@ update-dirlist: ${_DDIR}: ${_DLIST} - ${_PKG_SILENT}${_PKG_DEBUG} \ - ddir=`${SED} 's:-[^-]*$$::' ${_DLIST}`; \ - ${ECHO} >${_DDIR}; \ - for pkg in $${ddir} ; do \ - if ${PKG_INFO} -b "$${pkg}" >/dev/null 2>&1 ; then \ - ${PKG_INFO} -b "$${pkg}" | ${SED} -ne \ - 's,\([^/]*/[^/]*\)/Makefile:.*,\1,p' | \ - ${HEAD} -1 >>${_DDIR}; \ - fi ; \ - done + ${RUN} \ + for pkg in `${CAT} ${_DLIST}`; do \ + ${PKG_INFO} -Q PKGPATH "$${pkg}"; \ + done >> ${_DDIR} ${_DLIST}: ${WRKDIR} ${_PKG_SILENT}${_PKG_DEBUG} \ |