From 7b794954a5a26118c885562ccb75f80b74e2a24c Mon Sep 17 00:00:00 2001 From: jjhua Date: Mon, 7 Jan 2013 03:20:19 +0000 Subject: [PATCH] fixed the issue which couldn't generate the correct mirror path git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14766 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/ospkgs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/xCAT/postscripts/ospkgs b/xCAT/postscripts/ospkgs index 230e42727..d986e93b6 100755 --- a/xCAT/postscripts/ospkgs +++ b/xCAT/postscripts/ospkgs @@ -284,31 +284,31 @@ else if ( pmatch "$OSVER" "rhels6*" ); then if [ $ARCH == "ppc64" ]; then - ospkgdir="$ospkgdir/Server" + ospkgdir_ok="$ospkgdir/Server" index=$(expr $index + 1) - array_set_element os_path $index $ospkgdir + array_set_element os_path $index $ospkgdir_ok fi if [ $ARCH == "x86_64" ]; then for arg in "Server" "ScalableFileSystem" "HighAvailability" "ResilientStorage" "LoadBalancer" do - ospkgdir="$ospkgdir/$arg" + ospkgdir_ok="$ospkgdir/$arg" index=$(expr $index + 1) - array_set_element os_path $index $ospkgdir + array_set_element os_path $index $ospkgdir_ok done fi elif ( pmatch "$OSVER" "rhels5*" ); then # for rhels5, the repodata is in ./Server, ./Cluster, ./CusterStorage, not in ./ - ospkgdir="$ospkgdir/Server" - array_set_element os_path $index $ospkgdir + ospkgdir_ok="$ospkgdir/Server" + array_set_element os_path $index $ospkgdir_ok if [ $ARCH == "x86_64" ]; then for arg in "Cluster" "ClusterStorage" do - ospkgdir="$ospkgdir/$arg" + ospkgdir_ok="$ospkgdir/$arg" index=$(expr $index + 1) - array_set_element os_path $index $ospkgdir + array_set_element os_path $index $ospkgdir_ok done fi # x86_64 fi # if...elif..fi