On Monday 2011-09-26 17:35, Frederic Crozat wrote:
%service_add_pre() \ test -n "$FIRST_ARG" || FIRST_ARG=$1 \ # disable migration if initial install under systemd \ if [ $FIRST_ARG -eq 1 ]; then \
Why not just directly use $1 in the test?
for service in %{?*} ; do \ sysv_service=`echo $service | sed -e 's/\.[a-z]*//g'` \
What is it that is being stripped here? .[a-z]* looks like it can wreak havoc all over the string. I guess something like this goes faster: sysv_service="$service"; sysv_service="${service%.service}"; sysv_service="${service%.unit}"; if not, $service should at least be quoted. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org