From 39b52985690ab411fb7f974d77ddca85aca5385a Mon Sep 17 00:00:00 2001 From: xq2005 Date: Thu, 10 Oct 2013 03:11:53 -0700 Subject: [PATCH] bug 3824: install systemimager on sles10 failed --- xCAT/postscripts/otherpkgs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/otherpkgs b/xCAT/postscripts/otherpkgs index 93b2d9f18..234df6678 100755 --- a/xCAT/postscripts/otherpkgs +++ b/xCAT/postscripts/otherpkgs @@ -699,7 +699,7 @@ while [ $op_index -le $OTHERPKGS_INDEX ]; do if ( pmatch "$OSVER" "sles11*" ); then result=`zypper ar -c $REPOFILE` else - result=`zypper sa -c $REPOFILE` + result=`zypper sa -r $REPOFILE` fi result=`zypper --non-interactive refresh xcat-otherpkgs$index 2>&1` @@ -707,6 +707,11 @@ while [ $op_index -le $OTHERPKGS_INDEX ]; do rc=0 array_set_element repo_path $index $path else + #on sles10, the $? always 1, even the refresh is success. + if ( pmatch "$OSVER" "sles10*" ); then + rc=0 + array_set_element repo_path $index $path + fi result=`zypper sd xcat-otherpkgs$index` fi elif [ $hasapt -eq 1 ]; then