summaryrefslogtreecommitdiff
path: root/mk/bulk
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2002-12-01 05:53:43 +0000
committerdmcmahill <dmcmahill>2002-12-01 05:53:43 +0000
commita6e81b9ec3849822fd2dc6d9170d1b3c51b423f2 (patch)
treedaeebf00fdfe71a0d12e759a922720aad73648f8 /mk/bulk
parent6d29d2913b78d12f974ec5628eaa49bc4aeca12f (diff)
downloadpkgsrc-a6e81b9ec3849822fd2dc6d9170d1b3c51b423f2.tar.gz
add some more error checking. In particular if the bulk-cache creation
fails, then abort the build.
Diffstat (limited to 'mk/bulk')
-rw-r--r--mk/bulk/build6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/bulk/build b/mk/bulk/build
index 0ed7f095f74..fac39fca92a 100644
--- a/mk/bulk/build
+++ b/mk/bulk/build
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: build,v 1.25 2002/08/22 08:21:30 jlam Exp $
+# $NetBSD: build,v 1.26 2002/12/01 05:53:43 dmcmahill Exp $
#
# Copyright (c) 1999, 2000 Hubert Feyrer <hubertf@netbsd.org>
@@ -157,6 +157,10 @@ done
cd ${USR_PKGSRC}
if [ "$1" != "restart" ]; then
cd ${USR_PKGSRC} && ${BMAKE} bulk-cache
+ if [ $? != 0 ]; then
+ echo "$0: Cache creation failed. Aborting build."
+ exit 1
+ fi
fi
echo "Starting actual build using the order specified in $ORDERFILE..."