pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk make update might be called without having the pack...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/48b11c7c1ddd
branches:  trunk
changeset: 555736:48b11c7c1ddd
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Mar 07 19:36:31 2009 +0000

description:
make update might be called without having the package installed, so
check for the presence before trying to extract dependencies.

diffstat:

 mk/bsd.pkg.update.mk |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r 78e5e28eacb9 -r 48b11c7c1ddd mk/bsd.pkg.update.mk
--- a/mk/bsd.pkg.update.mk      Sat Mar 07 18:41:11 2009 +0000
+++ b/mk/bsd.pkg.update.mk      Sat Mar 07 19:36:31 2009 +0000
@@ -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 @@
 
 .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



Home | Main Index | Thread Index | Old Index