Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package uisp for openSUSE:Factory checked in 
at 2022-03-08 20:31:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/uisp (Old)
 and      /work/SRC/openSUSE:Factory/.uisp.new.2349 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "uisp"

Tue Mar  8 20:31:46 2022 rev:25 rq:960064 version:20050207suse

Changes:
--------
--- /work/SRC/openSUSE:Factory/uisp/uisp.changes        2022-03-05 
14:45:18.511729558 +0100
+++ /work/SRC/openSUSE:Factory/.uisp.new.2349/uisp.changes      2022-03-11 
11:37:08.582328994 +0100
@@ -1,0 +2,6 @@
+Mon Mar  7 17:53:05 UTC 2022 - Martin Wilck <[email protected]>
+
+- Add code for safe modprobe.d migration
+  (https://en.opensuse.org/openSUSE:Packaging_UsrEtc)
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ uisp.spec ++++++
--- /var/tmp/diff_new_pack.lDoaDK/_old  2022-03-11 11:37:09.054329549 +0100
+++ /var/tmp/diff_new_pack.lDoaDK/_new  2022-03-11 11:37:09.062329557 +0100
@@ -20,6 +20,7 @@
 # systemd-rpm-macros is wrong in 15.3 and below
 %define _modprobedir /lib/modprobe.d
 %endif
+%global modprobe_d_files uisp_parport.conf
 
 %define prefix /usr/avr
 
@@ -91,6 +92,13 @@
 mkdir -p       %{buildroot}%{_modprobedir}
 install -m 644 %{SOURCE2} %{buildroot}%{_modprobedir}/uisp_parport.conf
 
+%pre
+# Avoid restoring outdated stuff in posttrans
+for _f in %{?modprobe_d_files}; do
+    [ ! -f "/etc/modprobe.d/${_f}.rpmsave" ] || \
+        mv -f "/etc/modprobe.d/${_f}.rpmsave" 
"/etc/modprobe.d/${_f}.rpmsave.old" || :
+done
+
 %post
 %if %suse_version >= 1000
 if [ "$1" -eq 1 ]; then
@@ -105,6 +113,13 @@
 fi
 %endif
 
+%posttrans
+# Migration of modprobe.conf files to _modprobedir
+for _f in %{?modprobe_d_files}; do
+    [ ! -f "/etc/modprobe.d/${_f}.rpmsave" ] || \
+        mv -fv "/etc/modprobe.d/${_f}.rpmsave" "/etc/modprobe.d/${_f}" || :
+done
+
 %files
 %defattr (-, root, root)
 %doc AUTHORS CHANGES COPYING ChangeLog* CHANGES.old INSTALL NEWS TODO

Reply via email to