Accepting request 840334 from home:cboltz

- %service_del_postun_without_restart only works for Tumbleweed,
  keep using DISABLE_RESTART_ON_UPDATE for Leap 15.x

OBS-URL: https://build.opensuse.org/request/show/840334
OBS-URL: https://build.opensuse.org/package/show/security:apparmor/apparmor?expand=0&rev=276
This commit is contained in:
2020-10-08 21:20:17 +00:00
committed by Git OBS Bridge
parent 7de39802e7
commit 13d781e542
2 changed files with 11 additions and 0 deletions

View File

@@ -762,7 +762,12 @@ fi
%postun parser
# don't call try-restart, see bnc#853019
%if 0%{?suse_version} <= 1500
export DISABLE_RESTART_ON_UPDATE="yes"
%service_del_postun apparmor.service
%else
%service_del_postun_without_restart apparmor.service
%endif
%post abstractions
# workaround for bnc#904620#c8 / lp#1392042