From c43778379d7505f05f10bec0f56988a856937aba Mon Sep 17 00:00:00 2001 From: Vladimir Sokolovsky Date: Wed, 21 May 2008 14:29:33 +0300 Subject: [PATCH] Remove MPI RPMs first. mpi-selector should be removed after MPI RPMs. Signed-off-by: Vladimir Sokolovsky --- uninstall.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/uninstall.sh b/uninstall.sh index a491e43..4dec47b 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -141,7 +141,7 @@ uninstall() for mpitest_name in $MPITESTS_LIST do if ( $RPM -q ${mpitest_name} > $NULL 2>&1 ); then - packs_to_remove="$packs_to_remove ${mpitest_name}" + ex "$RPM -e ${mpitest_name}" fi done fi @@ -152,7 +152,7 @@ uninstall() for mpi_name in $MVAPICH_LIST do if ( $RPM -q ${mpi_name} > $NULL 2>&1 ); then - packs_to_remove="$packs_to_remove ${mpi_name}" + ex "$RPM -e ${mpi_name}" fi done fi @@ -163,7 +163,7 @@ uninstall() for mpi_name in $MVAPICH2_LIST do if ( $RPM -q ${mpi_name} > $NULL 2>&1 ); then - packs_to_remove="$packs_to_remove ${mpi_name}" + ex "$RPM -e ${mpi_name}" fi done fi @@ -174,7 +174,7 @@ uninstall() for mpi_name in $OPENMPI_LIST do if ( $RPM -q ${mpi_name} > $NULL 2>&1 ); then - packs_to_remove="$packs_to_remove ${mpi_name}" + ex "$RPM -e ${mpi_name}" fi done fi @@ -182,10 +182,10 @@ uninstall() MPI_SELECTOR_LIST=$(rpm -qa | grep ${MPI_SELECTOR_NAME}) if [ -n "$MPI_SELECTOR_LIST" ]; then - for mpitest_name in $MPI_SELECTOR_LIST + for mpiselector in $MPI_SELECTOR_LIST do - if ( $RPM -q ${mpitest_name} > $NULL 2>&1 ); then - packs_to_remove="$packs_to_remove ${mpitest_name}" + if ( $RPM -q ${mpiselector} > $NULL 2>&1 ); then + ex "$RPM -e ${mpiselector}" fi done fi -- 2.41.0