Hello community,

here is the log from the commit of package mvapich2 for openSUSE:Factory 
checked in at 2018-09-18 11:44:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mvapich2 (Old)
 and      /work/SRC/openSUSE:Factory/.mvapich2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mvapich2"

Tue Sep 18 11:44:47 2018 rev:12 rq:636135 version:2.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/mvapich2/mvapich2.changes        2018-08-22 
14:22:12.762615917 +0200
+++ /work/SRC/openSUSE:Factory/.mvapich2.new/mvapich2.changes   2018-09-18 
11:44:57.495815388 +0200
@@ -1,0 +2,10 @@
+Mon Sep 10 12:15:10 UTC 2018 - nmoreychaisemar...@suse.com
+
+- Remove bashism in postun scriptlet
+
+-------------------------------------------------------------------
+Wed Sep  5 06:54:33 UTC 2018 - nmoreychaisemar...@suse.com
+
+- Fix handling of mpi-selector during updates (bsc#1098653)
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ mvapich2.spec ++++++
--- /var/tmp/diff_new_pack.H1vnLg/_old  2018-09-18 11:44:59.895812892 +0200
+++ /var/tmp/diff_new_pack.H1vnLg/_new  2018-09-18 11:44:59.895812892 +0200
@@ -429,8 +429,10 @@
 %post
 /sbin/ldconfig
 %if %{without hpc}
+# Always register. We might be already registered in the case of an udate
+# but mpi-selector handles it fine
 /usr/bin/mpi-selector \
-        --register %{name}%{?pack_suff}-%{version} \
+        --register %{name}%{?pack_suff} \
         --source-dir %{p_bindir} \
         --yes
 %endif
@@ -438,7 +440,14 @@
 %postun
 /sbin/ldconfig
 %if %{without hpc}
-/usr/bin/mpi-selector --unregister %{name}%{?pack_suff}-%{version} --yes 
--silent
+# Only unregister when uninstalling
+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
+               /usr/bin/mpi-selector --system --unset --yes
+       fi
+fi
 %else
 %hpc_module_delete_if_default
 %endif


Reply via email to