summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.update.mk
diff options
context:
space:
mode:
authorjoerg <joerg>2009-03-07 19:36:31 +0000
committerjoerg <joerg>2009-03-07 19:36:31 +0000
commitde66e9d29c29db9027c5edd512e872196a01d2de (patch)
treec75abf4a8227ba34e07c1a42ef04c3df6ebc0bd7 /mk/bsd.pkg.update.mk
parent4a39287b90bf02df6f20b77d0de4a6281a0edd9a (diff)
downloadpkgsrc-de66e9d29c29db9027c5edd512e872196a01d2de.tar.gz
make update might be called without having the package installed, so
check for the presence before trying to extract dependencies.
Diffstat (limited to 'mk/bsd.pkg.update.mk')
-rw-r--r--mk/bsd.pkg.update.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/mk/bsd.pkg.update.mk b/mk/bsd.pkg.update.mk
index c067cdd7a77..e5165a78c99 100644
--- a/mk/bsd.pkg.update.mk
+++ b/mk/bsd.pkg.update.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.update.mk,v 1.16 2009/03/05 23:07:15 joerg Exp $
+# $NetBSD: bsd.pkg.update.mk,v 1.17 2009/03/07 19:36:31 joerg Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and contains the targets
# and variables for "make update".
@@ -128,7 +128,11 @@ ${_DDIR}: ${_DLIST}
.if ${PKGTOOLS_VERSION} >= 20090302
${_DLIST}: ${WRKDIR}
- ${PKG_INFO} -qr "${PKGWILDCARD}" > ${_DLIST}
+ if ${PKG_INFO} -qe "${PKGWILDCARD}"; then \
+ ${PKG_INFO} -qr "${PKGWILDCARD}" > ${_DLIST}; \
+ else \
+ ${TOUCH} ${_DLIST}; \
+ fi
.elif ${PKGTOOLS_VERSION} >= 20090225
${_DLIST}: ${WRKDIR}
${RUN}echo "Please update to pkg_install-20090302 or later" 2>&1