diff options
author | joerg <joerg@pkgsrc.org> | 2009-03-07 19:36:31 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-03-07 19:36:31 +0000 |
commit | 3e9de36e256668e3bef2e38bf1bc27474157e954 (patch) | |
tree | c75abf4a8227ba34e07c1a42ef04c3df6ebc0bd7 /mk | |
parent | 765382e8fcde921f46891a0da5011b86a85ad636 (diff) | |
download | pkgsrc-3e9de36e256668e3bef2e38bf1bc27474157e954.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')
-rw-r--r-- | mk/bsd.pkg.update.mk | 8 |
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 |