Hello community,

here is the log from the commit of package sbd for openSUSE:Factory checked in 
at 2020-11-02 09:41:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sbd (Old)
 and      /work/SRC/openSUSE:Factory/.sbd.new.3463 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sbd"

Mon Nov  2 09:41:56 2020 rev:36 rq:845071 version:1.4.1+20200819.4a02ef2

Changes:
--------
--- /work/SRC/openSUSE:Factory/sbd/sbd.changes  2020-08-29 20:42:29.169468567 
+0200
+++ /work/SRC/openSUSE:Factory/.sbd.new.3463/sbd.changes        2020-11-02 
09:42:20.937722514 +0100
@@ -1,0 +2,9 @@
+Fri Oct 30 16:02:05 UTC 2020 - Franck Bui <[email protected]>
+
+- Update the uses of the systemd rpm macros
+  * use '%service_del_postun_without_restart' instead of '%service_del_postun 
-n'
+  * drop use of '%service_del_preun -n' as '-n' is unsafe and is deprecated
+    This part still needs to be reworked as leaving services running why their
+    package has been removed is unsafe.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ sbd.spec ++++++
--- /var/tmp/diff_new_pack.lfolic/_old  2020-11-02 09:42:22.025723558 +0100
+++ /var/tmp/diff_new_pack.lfolic/_new  2020-11-02 09:42:22.029723562 +0100
@@ -108,10 +108,12 @@
 %service_add_pre sbd.service sbd_remote.service
 
 %preun
-%service_del_preun -n sbd.service sbd_remote.service
+if [ $1 -eq 0 ]; then
+    systemctl disable sbd.service sbd_remote.service
+fi
 
 %postun
-%service_del_postun -n sbd.service sbd_remote.service
+%service_del_postun_without_restart sbd.service sbd_remote.service
 
 %post devel -p /sbin/ldconfig
 %postun devel -p /sbin/ldconfig


Reply via email to