libspec.lib: style fixes

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-07-07 17:17:11 +02:00
parent 876146520e
commit 1504e58b3e

View File

@ -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