From 1144077591b02d101c625c6da7199c7b2c464118 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Mon, 8 Jul 2013 07:10:42 +0000 Subject: [PATCH] build the ubuntu packages git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16901 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- build-ubunturepo | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/build-ubunturepo b/build-ubunturepo index c80109826..ab07debd0 100755 --- a/build-ubunturepo +++ b/build-ubunturepo @@ -91,14 +91,6 @@ local_dep_repo_path="$curdir/../../../xcat-dep/xcat-dep" sf_repo_url="https://sourceforge.net/projects/xcat/files/ubuntu" sf_dir="/home/frs/project/x/xc/xcat" -if [ "$PROMOTE" = 1 ]; then - upload_dir="xcat-core" - tar_name="xcat-core-$ver.tar.bz2" -else - upload_dir="core-snap" - tar_name="core-debs-snap.tar.bz2" -fi - #use flock to only one person build at the same time # Get a lock, so can not do 2 builds at once exec 8>/var/lock/xcatbld.lock @@ -195,6 +187,14 @@ then find ../../debs/* ! -name *.deb | xargs rm -f fi + if [ "$PROMOTE" = 1 ]; then + upload_dir="xcat-core" + tar_name="xcat-core-$ver.tar.bz2" + else + upload_dir="core-snap" + tar_name="core-debs-snap.tar.bz2" + fi + echo "#################################" echo "# Creating xcat-core repository #" echo "#################################"