only remove the repositories which were created by xCAT for sles

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15978 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2013-04-16 05:36:05 +00:00
parent e8edeca80c
commit f4acade014

View File

@ -497,7 +497,9 @@ elif ( pmatch "$OSVER" "sles11*" ); then
old_repo=`zypper lr |grep -e "^[0-9]" | cut -f2 -d '|'`
for x in $old_repo
do
result=`zypper rr "$x"`
if ( ( pmatch "$x" "xCAT-$OSVER-path*" ) || ( pmatch "$x" "$OSVER-path*" ) ); then
result=`zypper rr "$x"`
fi
done
result=`zypper --non-interactive refresh 2>&1`
if [ $debug -ne 0 ]; then