summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorhubertf <hubertf>2003-11-20 00:02:59 +0000
committerhubertf <hubertf>2003-11-20 00:02:59 +0000
commit2bd0122d02565584b1d47956bb42e2991a9c4c96 (patch)
tree3666cacbe6a532e7639d145ad13382f865555b29 /mk
parent53c3cf8fa088fef23ef8bcbac6b9c6f218d1a104 (diff)
downloadpkgsrc-2bd0122d02565584b1d47956bb42e2991a9c4c96.tar.gz
Catch error from su, and report it to the calling script (pkgsrc/mk/build)
Diffstat (limited to 'mk')
-rw-r--r--mk/bulk/pre-build8
1 files changed, 6 insertions, 2 deletions
diff --git a/mk/bulk/pre-build b/mk/bulk/pre-build
index e144174db40..7fc53c22e42 100644
--- a/mk/bulk/pre-build
+++ b/mk/bulk/pre-build
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: pre-build,v 1.30 2003/09/16 17:21:36 grant Exp $
+# $NetBSD: pre-build,v 1.31 2003/11/20 00:02:59 hubertf Exp $
#
# Clean up system to be ready for bulk pkg build
#
@@ -149,10 +149,14 @@ if [ "$CVS_USER" != "" ]; then
fi
echo Performing CVS update - this will take some time
su - ${CVS_USER} -c 'stty sane ; setenv CVS_RSH ssh ; cd '${USR_PKGSRC}' ; cvs -q update -Pd '"${CVS_FLAGS}"
+ if [ $? != 0 ]
+ then
+ echo CVS update not successful, aborting.
+ exit 1
+ fi
echo CVS update done.
fi
-
#
# Remove old/broken distfiles and binary packages
#