What | Removed | Added |
---|---|---|
Flags | needinfo?(mls@suse.com) |
#72: processed options are not included in %{*} I would simply do it like this (untested): %_stop_check_systemctl(fn) \ %{-n:exit 0} \ %{!-n:\ test "$YAST_IS_RUNNING" = instsys && exit 0 \ %{!-f:\ test -f /etc/sysconfig/services && . /etc/sysconfig/services \ test "$DISABLE_STOP_ON_REMOVAL" = yes -o \ "$DISABLE_STOP_ON_REMOVAL" = 1 && exit \ } \ } \ /usr/bin/systemctl stop %nil No extra macros, no %if statement, just option processing.