From 3d775171701638da190d37e569bea2437fa23e4a Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 17 Mar 2008 16:25:12 +0000 Subject: [PATCH] be smarter when locating myplc rpm, for non i386 archs --- vbuild-nightly.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vbuild-nightly.sh b/vbuild-nightly.sh index 59300193..b753343a 100755 --- a/vbuild-nightly.sh +++ b/vbuild-nightly.sh @@ -189,13 +189,13 @@ function runtest () { echo -n "============================== Starting $COMMAND:runtest on $(date)" ### the URL to the myplc package - rpm=$( (cd /vservers/$BASE/build/RPMS/i386 ; ls myplc-[0-9]*.rpm) ) + rpm=$( find /vservers/$BASE/build/RPMS -name 'myplc-[0-9]*' ) if [ ${#rpm[@]} != 1 ] ; then echo "$COMMAND: Cannot locate rpm for testing" failure exit 1 fi - url=${TESTBUILDURL}${PLDISTRO}/${BASE}/RPMS/i386/${rpm} + url=$(echo $rpm | sed -e "s,/vservers/$BASE/build,${TESTBUILDURL}${PLDISTRO}/${BASE},") # compute test directory name on test box testdir=test-${BASE} -- 2.47.0