Hello community,

here is the log from the commit of package btrfsmaintenance for 
openSUSE:Factory checked in at 2017-11-13 14:09:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/btrfsmaintenance (Old)
 and      /work/SRC/openSUSE:Factory/.btrfsmaintenance.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "btrfsmaintenance"

Mon Nov 13 14:09:39 2017 rev:10 rq:541222 version:0.3.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/btrfsmaintenance/btrfsmaintenance.changes        
2017-11-08 15:16:00.773171149 +0100
+++ /work/SRC/openSUSE:Factory/.btrfsmaintenance.new/btrfsmaintenance.changes   
2017-11-13 14:09:47.737814881 +0100
@@ -1,0 +2,10 @@
+Fri Nov 10 22:12:08 UTC 2017 - antoine.belv...@opensuse.org
+
+- Fix cron symlinks removal upon package upgrade (boo#904518):
+  * The problem was in the preun section (in the old RPM).
+  * This means the symlinks are removed by this update, but won't
+    be by the next ones.
+  * Please run 'systemctl start btrfsmaintenance-refresh' one more
+    time to fix your symlinks.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ btrfsmaintenance.spec ++++++
--- /var/tmp/diff_new_pack.ZW86p9/_old  2017-11-13 14:09:49.145764215 +0100
+++ /var/tmp/diff_new_pack.ZW86p9/_new  2017-11-13 14:09:49.149764071 +0100
@@ -95,7 +95,12 @@
 
 %preun
 %service_del_preun btrfsmaintenance-refresh.service
-%{_datadir}/%{name}/btrfsmaintenance-refresh-cron.sh uninstall
+if [ $1 -eq 0 ]; then
+  # Remove cron files in %%preun only if it's a package removal.
+  # If it's an upgrade, the %%post section of the new package has
+  # already refreshed the cron links, so we shall not remove them.
+  %{_datadir}/%{name}/btrfsmaintenance-refresh-cron.sh uninstall
+fi
 
 %postun
 %service_del_postun btrfsmaintenance-refresh.service
@@ -104,7 +109,9 @@
 %if 0%{?suse_version} < 1210
 
 %preun
-%{_datadir}/%{name}/btrfsmaintenance-refresh-cron.sh uninstall
+if [ $1 -eq 0 ]; then
+  %{_datadir}/%{name}/btrfsmaintenance-refresh-cron.sh uninstall
+fi
 %endif
 
 %files


Reply via email to