Michael Schr�der changed bug 968405
What Removed Added
Flags needinfo?(mls@suse.com)  

Comment # 75 on bug 968405 from
#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.


You are receiving this mail because: