Accepting request 838453 from home:fbui:branches:network:utilities

- Drop use of DISABLE_RESTART_ON_UPDATE=yes
  This interface is deprecated and %service_del_postun_without_restart
  should be preferred.
  However the variable was misused as DISABLE_RESTART_ON_UPDATE=yes
  was not supposed to be used with %service_add_post in %post but with
  %service_del_postun in %postun section.
  Given that no one noticed that for years let's just drop it.

OBS-URL: https://build.opensuse.org/request/show/838453
OBS-URL: https://build.opensuse.org/package/show/network:utilities/nbd?expand=0&rev=74
This commit is contained in:
Marcus Schaefer
2020-09-29 07:41:49 +00:00
committed by Git OBS Bridge
parent 7d600196ed
commit 7197432ffd
2 changed files with 15 additions and 1 deletions

View File

@@ -4,6 +4,20 @@ Fri Sep 18 08:53:47 UTC 2020 - Michał Rostecki <mrostecki@suse.com>
- Remove firewalld service file - it's in the main firewalld
package now.
-------------------------------------------------------------------
Fri Sep 11 18:22:18 UTC 2020 - Franck Bui <fbui@suse.com>
- Drop use of DISABLE_RESTART_ON_UPDATE=yes
This interface is deprecated and %service_del_postun_without_restart
should be preferred.
However the variable was misused as DISABLE_RESTART_ON_UPDATE=yes
was not supposed to be used with %service_add_post in %post but with
%service_del_postun in %postun section.
Given that no one noticed that for years let's just drop it.
-------------------------------------------------------------------
Thu Aug 20 07:03:13 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
@@ -534,3 +548,4 @@ Mon Jul 4 18:24:39 CEST 2005 - garloff@suse.de
- Initial creation of package.
-------------------------------------------------------------------
Mon Jul 4 18:24:39 CEST 2005 -

View File

@@ -89,7 +89,6 @@ install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/nbd-server/config.ex
install -D -p -m 0644 %{SOURCE4} %{buildroot}%{_fillupdir}/sysconfig.%{name}-server
%post
export DISABLE_RESTART_ON_UPDATE=yes
%service_add_post %{name}-server.service
%fillup_only -n nbd-server
if test -e %{_sysconfdir}/nbd-server.conf; then