libnetwork.lib.in: fix SRPM download error for packages with '+' character (e.g. libxml++ did also match libxml++2)

This commit is contained in:
Silvan Calarco 2020-12-02 10:03:12 +01:00
parent 3bcaa2cf38
commit bb706d3ef4

View File

@ -98,7 +98,7 @@ function repository.get_srpm_pckname_from_site() {
notify.debug "$FUNCNAME: infile = \"$infile\""
local regexpr
[[ "$pck_name" =~ ^[a-zA-Z0-9_-]+$ ]] && \
[[ "$pck_name" =~ ^[+a-zA-Z0-9_-]+$ ]] && \
regexpr="^$pck_name-[^-]\+-[^-]\+$" || regexpr="$pck_name"
notify.debug "$FUNCNAME: regexpr = \"$regexpr\""