libspec.lib: style fixes
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
parent
876146520e
commit
1504e58b3e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user