libnetwork.lib.in: replace '%2B' with '+' in RPMS and SRPMS file list retrieval

This commit is contained in:
Silvan Calarco 2024-06-09 14:25:32 +02:00
parent e5218ce90e
commit fadd2fbc2e

View File

@ -232,7 +232,7 @@ getting list of files from"" \`${NOTE}$currurl/${NORM}'..."
notify.debug "$FUNCNAME: curl return code: $retval"
case "$retval" in
0) sed -i 's/\x0D$//' $currflist
0) sed -i 's/\x0D$//;/%2B/+/g' $currflist
flist[$i]="$currflist" ;;
6) notify.warning $"couldn't resolve host"
let "errors += 1" ;;
@ -424,7 +424,7 @@ ${proxy:+ --proxy ***}${proxy_user:+ --proxy-user ***}"
esac
if [ -s "$flist" ]; then
sed -i 's/\x0D$//' $flist
sed -i 's/\x0D$//;s/%2B/+/g' $flist
case $currurl in
ftp://*|http://*|https://*)
for pck_name in ${pck_names[@]}; do