libnetwork.lib.in: fix support for pkg names containing '+' characters by converting %2B encoding with +

This commit is contained in:
Silvan 2023-10-03 19:42:30 +02:00
parent c8aa6e032a
commit 8655efaeb5

View File

@ -88,6 +88,7 @@ function repository.get_srpm_pckname_from_site() {
local pckname_from_HTML=($(sed -n "\ local pckname_from_HTML=($(sed -n "\
# remove HTML tags --> get a better input # remove HTML tags --> get a better input
/<[aA]\+ [hH]\+[rR]\+[eE]\+[fF]\+=\".*\.src\.rpm\"/{ /<[aA]\+ [hH]\+[rR]\+[eE]\+[fF]\+=\".*\.src\.rpm\"/{
s|%2B|+|g;
s|.*<[aA]\+ [hH]\+[rR]\+[eE]\+[fF]\+=\"\([^\"]*\)\".*|\1| s|.*<[aA]\+ [hH]\+[rR]\+[eE]\+[fF]\+=\"\([^\"]*\)\".*|\1|
{/$regexpr/Ip}}" $infile)) {/$regexpr/Ip}}" $infile))
echo "${pckname_from_HTML[*]}" echo "${pckname_from_HTML[*]}"