Hello community,

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

Package is "mpich"

Tue Sep 18 11:44:31 2018 rev:11 rq:636134 version:3.2.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/mpich/mpich.changes      2018-08-22 
14:22:15.138621542 +0200
+++ /work/SRC/openSUSE:Factory/.mpich.new/mpich.changes 2018-09-18 
11:44:47.503825783 +0200
@@ -1,0 +2,10 @@
+Mon Sep 10 12:14:13 UTC 2018 - [email protected]
+
+- Remove bashism in postun scriptlet
+
+-------------------------------------------------------------------
+Wed Sep  5 06:53:58 UTC 2018 - [email protected]
+
+- Fix handling of mpi-selector during updates (bsc#1098653)
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ mpich.spec ++++++
--- /var/tmp/diff_new_pack.2VlnBL/_old  2018-09-18 11:44:48.263824993 +0200
+++ /var/tmp/diff_new_pack.2VlnBL/_new  2018-09-18 11:44:48.263824993 +0200
@@ -430,8 +430,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
@@ -439,7 +441,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