diff --git a/xCAT/postscripts/ospkgs b/xCAT/postscripts/ospkgs index fac076316..1ecf66855 100755 --- a/xCAT/postscripts/ospkgs +++ b/xCAT/postscripts/ospkgs @@ -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