summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2003-11-20 00:02:59 +0000
committerhubertf <hubertf@pkgsrc.org>2003-11-20 00:02:59 +0000
commit6c4ff55ea411057ff69061f772c13630ed879ad7 (patch)
tree3666cacbe6a532e7639d145ad13382f865555b29 /mk
parent4c5ac83d458c85e0cc56564821b9e6cdad83b241 (diff)
downloadpkgsrc-6c4ff55ea411057ff69061f772c13630ed879ad7.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
#