From: Olga Shern Date: Sun, 31 Aug 2008 07:21:24 +0000 (+0300) Subject: Fix Open MPI removal issue on RH5.2. X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=52de7656ffdfd4445f8e6449188ef02a816f4f24;p=~aditr%2Fofed_scripts.git Fix Open MPI removal issue on RH5.2. Signed-off-by: Olga Shern --- diff --git a/uninstall.sh b/uninstall.sh index 1fd4415..03a62a5 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -199,12 +199,14 @@ uninstall() OPENMPI_LIST=$(rpm -qa | grep ${OPENMPI_NAME}) if [ -n "$OPENMPI_LIST" ]; then + ompi_packs_to_remove="" for mpi_name in $OPENMPI_LIST do if ( $RPM -q ${mpi_name} > $NULL 2>&1 ); then - ex "$RPM -e --allmatches ${mpi_name}" + ompi_packs_to_remove="$ompi_packs_to_remove ${mpi_name}" fi - done + done + ex "$RPM -e --allmatches $ompi_packs_to_remove" fi MPI_SELECTOR_LIST=$(rpm -qa | grep ${MPI_SELECTOR_NAME})