From 9400eff3ed39f0288c018bd9c7f80057e9b9e225 Mon Sep 17 00:00:00 2001 From: immarvin Date: Fri, 15 May 2015 04:32:41 -0400 Subject: [PATCH] all the ubuntu xcat-dep packages should be uploaded to on GSA, this script can grab them and finish the packaging --- build-ubunturepo | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/build-ubunturepo b/build-ubunturepo index a6cfe25de..eb1f37fa7 100755 --- a/build-ubunturepo +++ b/build-ubunturepo @@ -29,9 +29,12 @@ # UP=0 or UP=1 - override the default upload behavior # LOG= - provide an LOG file option to redirect some output into log file # -# For the dependency packages 1. please run the build-debs-all in xcat-dep svn first( there is usage detail in that script) +# For the dependency packages 1. All the xcat dependency deb packages should be uploaded to +# "pokgsa/projects/x/xcat/build/ubuntu/xcat-dep/debs/" on GSA # 2. run ./build-ubunturepo -d # +# 3. the built xcat-dep deb packages tarball can be found in "../../xcat-dep" +# related to the path of this script ############################ printusage() { @@ -87,6 +90,8 @@ if [ "$c_flag" -a "$d_flag" ];then exit 2 fi + + uploader="litingt" # Find where this script is located to set some build variables old_pwd=`pwd` @@ -378,6 +383,21 @@ then echo "# Creating xcat-dep repository #" echo "################################" + + #the path of ubuntu xcat-dep deb packages on GSA + GSA="/gsa/pokgsa/projects/x/xcat/build/ubuntu/xcat-dep" + + + if [ ! -d $GSA ]; then + echo "build-ubunturepo: It appears that you do not have gsa installed to access the xcat-dep pkgs." + exit 1; + fi + + # Sync from the GSA master copy of the dep rpms + echo "Syncing RPMs from $GSA/ to $local_dep_repo_path/../ ..." + rsync -ilrtpu --delete $GSA/ $local_dep_repo_path/../ + + #clean all old files if [ -e $local_dep_repo_path ];then rm -rf $local_dep_repo_path @@ -386,6 +406,7 @@ then cd $local_dep_repo_path mkdir conf + #create the conf/distributions file for dist in $dists; do if [ "$dist" = "trusty" ] || [ "$dist" = "utopic" ]; then