From 4372ca36cada3e69f990332faf5278dcb3907081 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Fri, 31 Aug 2018 14:13:26 +0200 Subject: [PATCH] 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 Signed-off-by: David Herrmann --- dbus.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/dbus.spec b/dbus.spec index abf92aa..1828ad7 100644 --- a/dbus.spec +++ b/dbus.spec @@ -22,7 +22,7 @@ Name: dbus Epoch: 1 Version: 1.12.10 -Release: 2%{?dist} +Release: 3%{?dist} Summary: D-BUS message bus Group: System Environment/Libraries @@ -338,6 +338,13 @@ popd %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 # The 'dbus' package is only retained for compatibility purposes. It will @@ -444,6 +451,10 @@ popd %changelog +* Fri Aug 31 2018 Tom Gundersen - 1:1.12.10-3 +- Make sure presets are applied when upgrading from packages before the presets + existed + * Thu Aug 30 2018 David Herrmann - 1:1.12.10-2 - Change 'system-release' dependency to 'fedora-release', since otherwise hard version dependencies are ignored.