Stephan Kulow 2019-02-28 20:37:38 +00:00 committed by Git OBS Bridge
commit 6e4fac3faf
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Fri Feb 22 07:33:05 UTC 2019 - Franck Bui <fbui@suse.com>
- Drop use of $FIRST_ARG in .spec
The use of $FIRST_ARG was probably required because of the
%service_* rpm macros were playing tricks with the shell positional
parameters. This is bad practice and error prones so let's assume
that no macros should do that anymore and hence it's safe to assume
that positional parameters remains unchanged after any rpm macro
call.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jan 5 00:31:20 UTC 2018 - jengelh@inai.de Fri Jan 5 00:31:20 UTC 2018 - jengelh@inai.de

View File

@ -192,7 +192,7 @@ systemctl reload dbus.service 2>/dev/null || :
%service_del_postun teamd@.service %service_del_postun teamd@.service
%endif %endif
# reload dbus to forget teamd's policy # reload dbus to forget teamd's policy
if [ ${FIRST_ARG:-$1} -eq 0 ]; then if [ $1 -eq 0 ]; then
systemctl reload dbus.service 2>/dev/null || : systemctl reload dbus.service 2>/dev/null || :
fi fi