summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2001-05-02 13:51:43 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2001-05-02 13:51:43 +0000
commit0c4917e91868550095ecd1d4b0919a939131dedb (patch)
tree323759f0ae3c3acb7ec12d419d4a2260a52da176 /mk
parent686fbb32c444c0a25d898bd968f4c1ea2dbcc6f0 (diff)
downloadpkgsrc-0c4917e91868550095ecd1d4b0919a939131dedb.tar.gz
do some extra checks. In particular, don't try to pkg_add a package if
it doesn't exist (doh!).
Diffstat (limited to 'mk')
-rw-r--r--mk/bulk/bsd.bulk-pkg.mk10
1 files changed, 7 insertions, 3 deletions
diff --git a/mk/bulk/bsd.bulk-pkg.mk b/mk/bulk/bsd.bulk-pkg.mk
index 6614272cf6e..88ae8bd085e 100644
--- a/mk/bulk/bsd.bulk-pkg.mk
+++ b/mk/bulk/bsd.bulk-pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.bulk-pkg.mk,v 1.23 2001/03/31 00:03:03 dmcmahill Exp $
+# $NetBSD: bsd.bulk-pkg.mk,v 1.24 2001/05/02 13:51:43 dmcmahill Exp $
#
# Copyright (c) 1999, 2000 Hubert Feyrer <hubertf@netbsd.org>
@@ -236,8 +236,12 @@ bulk-package:
pkgname=`${GREP} "^$$pkgdir " ${INDEXFILE} | ${AWK} '{print $$2}'` ; \
pkgfile=${PACKAGES}/All/$${pkgname}.tgz ;\
if ! `${PKG_INFO} -qe $$pkgname` ; then \
- ${ECHO_MSG} "BULK> " ${PKG_ADD} $$pkgfile ; \
- ${DO} ${PKG_ADD} $$pkgfile ; \
+ if [ -f $$pkgfile ]; then \
+ ${ECHO_MSG} "BULK> ${PKG_ADD} $$pkgfile"; \
+ ${DO} ${PKG_ADD} $$pkgfile ; \
+ else \
+ ${ECHO_MSG} "BULK> warning: $$pkgfile does not exist. It will be rebuilt." ;\
+ fi ;\
else \
${ECHO_MSG} "BULK> Required package $$pkgname ($$pkgdir) is already installed" ; \
fi ;\