diff --git a/xdm.changes b/xdm.changes index e13ed0b..7d2628f 100644 --- a/xdm.changes +++ b/xdm.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Dec 1 12:08:44 UTC 2020 - Stefan Dirsch + +- fixed %postun for older releases than factory/TW (see change + right below, which broke it) + ------------------------------------------------------------------- Tue Nov 3 14:38:22 UTC 2020 - Franck Bui diff --git a/xdm.spec b/xdm.spec index 8d35535..f05c75e 100644 --- a/xdm.spec +++ b/xdm.spec @@ -189,7 +189,11 @@ sed -i 's/DISPLAYMANAGER=.*//g' /etc/sysconfig/displaymanager %postun # Do not restart DM on update (bnc#886641) +%if 0%{?suse_version} >= 1550 %service_del_postun_without_restart display-manager.service +%else +%service_del_postun -n display-manager.service +%endif [ -f /usr/lib/X11/displaymanagers/console ] || %{_sbindir}/update-alternatives \ --remove default-displaymanager /usr/lib/X11/displaymanagers/console [ -f /usr/lib/X11/displaymanagers/xdm ] || %{_sbindir}/update-alternatives \