remove the xcat-otherpkgs*repo from ospkgs script
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16026 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
53dfc9e005
commit
baddac4d4c
@ -497,7 +497,7 @@ elif ( pmatch "$OSVER" "sles11*" ); then
|
||||
old_repo=`zypper lr |grep -e "^[0-9]" | cut -f2 -d '|'`
|
||||
for x in $old_repo
|
||||
do
|
||||
if ( ( pmatch "$x" "xCAT-$OSVER-path*" ) || ( pmatch "$x" "$OSVER-path*" ) ); then
|
||||
if ( ( pmatch "$x" "xCAT-$OSVER-path*" ) || ( pmatch "$x" "$OSVER-path*" ) || ( pmatch "$x" "xcat-otherpkgs*" ) ); then
|
||||
result=`zypper rr "$x"`
|
||||
fi
|
||||
done
|
||||
@ -706,8 +706,8 @@ else
|
||||
result=`rm /etc/yum.repos.d/local-repository.repo 2>&1`
|
||||
fi
|
||||
rm /etc/yum.repos.d/$OSVER-path*.repo >/dev/null 2>&1
|
||||
result=`rm /etc/yum.repos.d/xCAT-$OSVER-path*.repo 2>&1`
|
||||
|
||||
result=`rm /etc/yum.repos.d/xCAT*.repo 2>&1`
|
||||
result=`rm /etc/yum.repos.d/xCAT-otherpkgs*.repo 2>&1`
|
||||
fi
|
||||
|
||||
result=`yum clean all`
|
||||
|
@ -424,7 +424,7 @@ if ( pmatch "$OSVER" "sles11*" && [ $haszypper -eq 1 ] ); then
|
||||
old_repo=`zypper lr |grep -e "^[0-9]" | cut -f2 -d '|'`
|
||||
for x in $old_repo
|
||||
do
|
||||
if ( ( pmatch "$x" "xCAT-$OSVER-path*" ) || ( pmatch "$x" "$OSVER-path*" ) ); then
|
||||
if ( ( pmatch "$x" "xCAT-$OSVER*" ) || ( pmatch "$x" "$OSVER-path*" ) || ( pmatch "$x" "xcat-otherpkgs*" ) ); then
|
||||
result=`zypper rr "$x"`
|
||||
fi
|
||||
done
|
||||
@ -495,6 +495,7 @@ elif ( pmatch "$OSVER" "rhel*" && [ $hasyum -eq 1 ] ); then
|
||||
fi
|
||||
rm /etc/yum.repos.d/$OSVER-path*.repo >/dev/null 2>&1
|
||||
result=`rm /etc/yum.repos.d/xCAT-$OSVER-path*.repo 2>&1`
|
||||
result=`rm /etc/yum.repos.d/xCAT-otherpkgs*.repo 2>&1`
|
||||
|
||||
result=`yum clean all`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user