summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2003-11-28 22:46:48 +0000
committerhubertf <hubertf@pkgsrc.org>2003-11-28 22:46:48 +0000
commit472520bfe882894fe0cf72671dd29d6a57a32232 (patch)
tree61b94b6c5afe6f522558d030e46adf3231c372a2 /mk
parentc436f4fdf71db90777ce4f92e56207fcec13eac8 (diff)
downloadpkgsrc-472520bfe882894fe0cf72671dd29d6a57a32232.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')
-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.