pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/bulk Catch if the user given to "su" is bogus/non-e...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ba7089285bd7
branches: trunk
changeset: 463839:ba7089285bd7
user: hubertf <hubertf%pkgsrc.org@localhost>
date: Fri Nov 28 22:46:48 2003 +0000
description:
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:
mk/bulk/pre-build | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 0d805faee4da -r ba7089285bd7 mk/bulk/pre-build
--- a/mk/bulk/pre-build Fri Nov 28 19:28:52 2003 +0000
+++ b/mk/bulk/pre-build Fri Nov 28 22:46:48 2003 +0000
@@ -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 @@
( 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.
Home |
Main Index |
Thread Index |
Old Index