Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make update might be called without having the package installed, so

check for the presence before trying to extract dependencies.
  • Loading branch information...
commit 76b3f2bf84ce8a2904edd61dac6117262f70c269 1 parent ea481b2
joerg authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 mk/bsd.pkg.update.mk
View
8 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
Please sign in to comment.
Something went wrong with that request. Please try again.