diff options
author | tron <tron> | 2000-06-03 20:26:05 +0000 |
---|---|---|
committer | tron <tron> | 2000-06-03 20:26:05 +0000 |
commit | cd6a9c391f52d18796fa097feb16ca597c6950da (patch) | |
tree | a265ed4c25a3849548963061ca3e66a876460d8c /mk | |
parent | 5d2ce9c8a42a4194befa238046a80ddf8d0ac213 (diff) | |
download | pkgsrc-cd6a9c391f52d18796fa097feb16ca597c6950da.tar.gz |
Fix broken "update" target.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 41834ac81ef..ac31285ba24 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.465 2000/06/03 20:03:37 mycroft Exp $ +# $NetBSD: bsd.pkg.mk,v 1.466 2000/06/03 20:26:05 tron Exp $ # # This file is in the public domain. # @@ -1863,7 +1863,7 @@ update: ${_PKG_SILENT}${_PKG_DEBUG}${MAKE} ${MAKEFLAGS} reinstall .endif ${_PKG_SILENT}${_PKG_DEBUG} \ - [ -s ${DDIR} ] && for dep in `${CAT} ${DDIR}` ; do \ + [ ! -s ${DDIR} ] || for dep in `${CAT} ${DDIR}` ; do \ (if cd "../../$${dep}" ; then \ ${ECHO_MSG} "${_PKGSRC_IN}> Installing in $${dep}" && \ if [ "${RESUMEUPDATE}" = "NO" ] ; then \ @@ -1924,7 +1924,7 @@ ${DDIR}: ${DLIST} ddir=`${SED} 's:-[^-]*$$::' <${DLIST}`; \ if ${PKG_INFO} -b $${ddir} >/dev/null 2>&1 ; then \ ${PKG_INFO} -b $${ddir} | \ - ${SED} -ne 's,^\([^/]*/[^/]*\)/Makefile:.*,\1,p' \ + ${SED} -ne 's,^\([^/]*/[^/]*\)/Makefile:.*,\1,p'; \ else \ ${ECHO} >${DDIR}; \ fi |