dbus: apply presets on update

The systemd RPM macros only apply presets on first install, we need
to also apply them on the initial upgrade that starts depending on
them.

Signed-off-by: Tom Gundersen <teg@jklm.no>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
This commit is contained in:
Tom Gundersen 2018-08-31 14:13:26 +02:00 committed by David Herrmann
parent 27eb7993d2
commit 4372ca36ca

View File

@ -22,7 +22,7 @@
Name: dbus Name: dbus
Epoch: 1 Epoch: 1
Version: 1.12.10 Version: 1.12.10
Release: 2%{?dist} Release: 3%{?dist}
Summary: D-BUS message bus Summary: D-BUS message bus
Group: System Environment/Libraries Group: System Environment/Libraries
@ -338,6 +338,13 @@ popd
%postun libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig
%triggerpostun common -- dbus-common < 1:1.12.10-4
systemctl --no-reload preset dbus.socket &>/dev/null || :
systemctl --no-reload --global preset dbus.socket &>/dev/null || :
%triggerpostun daemon -- dbus-daemon < 1:1.12.10-4
systemctl --no-reload preset dbus-daemon.service &>/dev/null || :
systemctl --no-reload --global preset dbus-daemon.service &>/dev/null || :
%files %files
# The 'dbus' package is only retained for compatibility purposes. It will # The 'dbus' package is only retained for compatibility purposes. It will
@ -444,6 +451,10 @@ popd
%changelog %changelog
* Fri Aug 31 2018 Tom Gundersen <teg@jklm.no> - 1:1.12.10-3
- Make sure presets are applied when upgrading from packages before the presets
existed
* Thu Aug 30 2018 David Herrmann <dh.herrmann@gmail.com> - 1:1.12.10-2 * Thu Aug 30 2018 David Herrmann <dh.herrmann@gmail.com> - 1:1.12.10-2
- Change 'system-release' dependency to 'fedora-release', since otherwise hard - Change 'system-release' dependency to 'fedora-release', since otherwise hard
version dependencies are ignored. version dependencies are ignored.