Accepting request 541222 from filesystems
OBS-URL: https://build.opensuse.org/request/show/541222 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/btrfsmaintenance?expand=0&rev=10
This commit is contained in:
commit
3b6656686f
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 10 22:12:08 UTC 2017 - antoine.belvire@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.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 7 22:06:55 UTC 2017 - antoine.belvire@opensuse.org
|
||||
|
||||
|
@ -95,7 +95,12 @@ install -m 644 -D sysconfig.btrfsmaintenance %{buildroot}%{_localstatedir}/adm/f
|
||||
|
||||
%preun
|
||||
%service_del_preun btrfsmaintenance-refresh.service
|
||||
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 @@ install -m 644 -D sysconfig.btrfsmaintenance %{buildroot}%{_localstatedir}/adm/f
|
||||
%if 0%{?suse_version} < 1210
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ]; then
|
||||
%{_datadir}/%{name}/btrfsmaintenance-refresh-cron.sh uninstall
|
||||
fi
|
||||
%endif
|
||||
|
||||
%files
|
||||
|
Loading…
Reference in New Issue
Block a user