diff --git a/lib/libspec.lib.in b/lib/libspec.lib.in index ae85f18..365bd42 100644 --- a/lib/libspec.lib.in +++ b/lib/libspec.lib.in @@ -573,10 +573,12 @@ $FUNCNAME: * blank unexpanded and undefined variables beginning by \`?'..." # i.e. 'rpmvars.solve(%{__install_info} $specfile)' case "$output" in *%*) notify.debug "$FUNCNAME: * expanding rpm variables, if any..." - # hack to prevent a rpm segfault when evaluating urls containing '%' (e.g. python-pyslsk) + # hack to prevent a rpm segfault when evaluating urls containing '%' + # (e.g. python-pyslsk) output_prefix=`echo ${output} | sed "s|\(^[a-z]*://\).*|\1|"` output_suffix=`echo ${output} | sed "s|$output_prefix||"` - notify.debug "$FUNCNAME: rpm --eval \"$(for i in $(seq 0 1 $(( ${#rpmvar_name[@]} - 1 ))); do + notify.debug "\ +$FUNCNAME: rpm --eval \"$(for i in $(seq 0 1 $(( ${#rpmvar_name[@]} - 1 ))); do echo "%define ${rpmvar_name[$i]} ${rpmvar_value[$i]}"; done) ${output_suffix}\"" output=$(rpm --eval "$(for i in $(seq 0 1 $(( ${#rpmvar_name[@]} - 1 ))); do