Hello community,

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

Package is "openmpi"

Tue Sep 18 11:42:36 2018 rev:79 rq:636130 version:1.10.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/openmpi/openmpi.changes  2018-08-28 
09:23:13.940601086 +0200
+++ /work/SRC/openSUSE:Factory/.openmpi.new/openmpi.changes     2018-09-18 
11:42:40.391958405 +0200
@@ -1,0 +2,10 @@
+Mon Sep 10 12:15:29 UTC 2018 - nmoreychaisemar...@suse.com
+
+- Remove bashism in preun scriptlet
+
+-------------------------------------------------------------------
+Tue Sep  4 08:50:44 UTC 2018 - nmoreychaisemar...@suse.com
+
+- Fix handling of mpi-selector during updates (bsc#1098653)
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ openmpi.spec ++++++
--- /var/tmp/diff_new_pack.qLQN8u/_old  2018-09-18 11:42:41.127957635 +0200
+++ /var/tmp/diff_new_pack.qLQN8u/_new  2018-09-18 11:42:41.127957635 +0200
@@ -527,16 +527,21 @@
 
 %if %{without hpc}
 %post
+# 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}-%{version} \
+        --register %{name} \
         --source-dir %{mpi_bindir} \
         --yes
 
 %preun
-/usr/bin/mpi-selector --unregister %{name}-%{version} --yes
-/usr/bin/mpi-selector --system --query
-if [ ! -z "`/usr/bin/mpi-selector --system --query`" ]; then
-    /usr/bin/mpi-selector --system --unset --yes %{name}-%{version}
+# Only unregister when uninstalling
+if [ "$1" = "0" ]; then
+       # Deregister the default if we are uninstalling it
+       if [ "$(/usr/bin/mpi-selector --system --query)" = "%{name}" ]; then
+               /usr/bin/mpi-selector --system --unset --yes
+       fi
+       /usr/bin/mpi-selector --unregister %{name} --yes
 fi
 
 %post libs -p /sbin/ldconfig


Reply via email to