diff options
author | hubertf <hubertf@pkgsrc.org> | 2003-11-20 00:02:59 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2003-11-20 00:02:59 +0000 |
commit | f2c770a732571dea507f5ea20fcb64934601118e (patch) | |
tree | 3666cacbe6a532e7639d145ad13382f865555b29 /mk | |
parent | 69930cab8751d7dd248c8d2314e85cfe25fb0001 (diff) | |
download | pkgsrc-f2c770a732571dea507f5ea20fcb64934601118e.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-build | 8 |
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 # |