SHA256
1
0
forked from pool/mvapich2

Accepting request 633986 from home:NMoreyChaisemartin:branches:science:HPC

Fix ==

OBS-URL: https://build.opensuse.org/request/show/633986
OBS-URL: https://build.opensuse.org/package/show/science:HPC/mvapich2?expand=0&rev=48
This commit is contained in:
Nicolas Morey-Chaisemartin 2018-09-07 09:15:20 +00:00 committed by Git OBS Bridge
parent 11397ed657
commit 4b0d49ba11

View File

@ -441,7 +441,7 @@ mkdir -p %{buildroot}%{_sysconfdir}/rpm
/sbin/ldconfig
%if %{without hpc}
# Only unregister when uninstalling
if [ "$1" == "0" ]; then
if [ "$1" = "0" ]; then
/usr/bin/mpi-selector --unregister %{name}%{?pack_suff} --yes
# Deregister the default if we are uninstalling it
if [ "$(/usr/bin/mpi-selector --system --query)" == "%{name}%{?pack_suff}"]; then