only remove the repositories which were created by xCAT for sles
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15979 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
093e1cb8e4
commit
ab04cdafc3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user