summaryrefslogtreecommitdiff
path: root/mk/bulk
diff options
context:
space:
mode:
authorhubertf <hubertf>2003-11-28 22:46:48 +0000
committerhubertf <hubertf>2003-11-28 22:46:48 +0000
commita840b65b39ce374069b6f4dddd75a515d9f1f1d3 (patch)
tree61b94b6c5afe6f522558d030e46adf3231c372a2 /mk/bulk
parent298041b0bce7b5eb2ceedd9eca48cda8069311ed (diff)
downloadpkgsrc-a840b65b39ce374069b6f4dddd75a515d9f1f1d3.tar.gz
Catch if the user given to "su" is bogus/non-existing, but if
the "cvs" command inside the su returns an error, that should be ignored. (Aparently cvs returns "1" even if it's done a successful update but if there were some files removed on purpose).
Diffstat (limited to 'mk/bulk')
-rw-r--r--mk/bulk/pre-build4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/bulk/pre-build b/mk/bulk/pre-build
index 7fc53c22e42..019ea2b0b6a 100644
--- a/mk/bulk/pre-build
+++ b/mk/bulk/pre-build
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: pre-build,v 1.31 2003/11/20 00:02:59 hubertf Exp $
+# $NetBSD: pre-build,v 1.32 2003/11/28 22:46:48 hubertf Exp $
#
# Clean up system to be ready for bulk pkg build
#
@@ -148,7 +148,7 @@ if [ "$CVS_USER" != "" ]; then
( cd ${USR_PKGSRC}/security/ssh ; ${BMAKE} bulk-install )
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}"
+ su - ${CVS_USER} -c "stty sane ; setenv CVS_RSH ssh ; cd ${USR_PKGSRC} ; cvs -q update -Pd ${CVS_FLAGS} || exit 0"
if [ $? != 0 ]
then
echo CVS update not successful, aborting.