summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2002-04-18 15:54:34 +0000
committeragc <agc@pkgsrc.org>2002-04-18 15:54:34 +0000
commitc84be07a3194f6c40fe85b1b2fdda727b8765d5f (patch)
tree297f4246d93f1342a8ec95c41693c1ddfcff851b /mk
parentadfe02d503762127e5fc812bc7a903c465f98bb0 (diff)
downloadpkgsrc-c84be07a3194f6c40fe85b1b2fdda727b8765d5f.tar.gz
When creating the ${DLIST} file in the update target, don't create the
${WRKDIR} every time with "mkdir -p" - instead, use the ${WRKDIR} target, so that any symlinks to it are created properly. Also, when creating the ${DLIST} file in the update target, don't pipe the output of pkg_info -R through "tail -n +4" - simply use pkg_info -qR to achieve the same results.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk8
1 files changed, 3 insertions, 5 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 43873c822d0..dee2d47eb72 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.964 2002/04/18 15:23:43 agc Exp $
+# $NetBSD: bsd.pkg.mk,v 1.965 2002/04/18 15:54:34 agc Exp $
#
# This file is in the public domain.
#
@@ -2643,11 +2643,9 @@ ${DDIR}: ${DLIST}
fi ; \
done
-${DLIST}:
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} -p ${WRKDIR}
+${DLIST}: ${WRKDIR}
${_PKG_SILENT}${_PKG_DEBUG} \
- { ${PKG_INFO} -R "${PKGWILDCARD}" || ${TRUE}; } | \
- ${TAIL} -n +4 >${DLIST}
+ { ${PKG_INFO} -qR "${PKGWILDCARD}" || ${TRUE}; } > ${DLIST}
# The 'info' target can be used to display information about a package.
info: uptodate-pkgtools