diff options
author | dmcmahill <dmcmahill> | 2002-12-01 05:53:43 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill> | 2002-12-01 05:53:43 +0000 |
commit | a6e81b9ec3849822fd2dc6d9170d1b3c51b423f2 (patch) | |
tree | daeebf00fdfe71a0d12e759a922720aad73648f8 /mk | |
parent | 6d29d2913b78d12f974ec5628eaa49bc4aeca12f (diff) | |
download | pkgsrc-a6e81b9ec3849822fd2dc6d9170d1b3c51b423f2.tar.gz |
add some more error checking. In particular if the bulk-cache creation
fails, then abort the build.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bulk/build | 6 |
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..." |