From a25349c9e1a167a752344c5211003eef766a4af6 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Wed, 27 Oct 2004 19:39:45 +0000 Subject: [PATCH] - create package manifest in SRPMS/ after a successful build --- build.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 771cb169..bbae3a1a 100755 --- a/build.sh +++ b/build.sh @@ -4,7 +4,7 @@ # crontabs to build nightly releases (default). Can also be invoked # manually to build a tagged release (-r) in the current directory. # -# $Id: build.sh,v 1.15 2004/10/04 22:29:19 mlhuang Exp $ +# $Id: build.sh,v 1.16 2004/10/05 01:44:36 mlhuang Exp $ # # Set defaults @@ -88,7 +88,14 @@ if [ $rc -ne 0 ] ; then if [ -n "$MAILTO" ] ; then tail -100 ${BASE}/log | mail -s "Failures for ${BASE}" $MAILTO fi -elif [ -n "$BUILDS" ] ; then + exit $rc +fi + +# Create package manifest +${BASE}/packages.sh ${BASE}/SRPMS > ${BASE}/SRPMS/packages.xml + +# Usually only the nightly build specifies -x +if [ -n "$BUILDS" ] ; then # Remove old nightly runs echo "cd ${ALPHA_ROOT} && ls -t | sed -n ${BUILDS}~1p | xargs rm -rf" | ssh ${ALPHA_BOOT} /bin/bash -s # Update alpha node repository @@ -100,3 +107,5 @@ elif [ -n "$BUILDS" ] ; then # Update symlink ssh ${ALPHA_BOOT} ln -nsf ${ALPHA_ROOT}/${BASE}/RPMS/ ${ALPHA_RPMS} fi + +exit 0 -- 2.43.0