diff --git a/lib/libnetwork.lib.in b/lib/libnetwork.lib.in index 6290727..7aa2845 100644 --- a/lib/libnetwork.lib.in +++ b/lib/libnetwork.lib.in @@ -57,7 +57,7 @@ function repository.get_srpm_pckname_from_HTML() { # remove HTML tags --> get a better input /<[aA] [hH][rR][eE][fF]=\".*\.src\.rpm\"/{ s|.*<[aA] [hH][rR][eE][fF]=\"\([^\"]*\)\".*|\1| - {/$regexpr/p} + {/$regexpr/{s,\.src\.rpm,,;p}} }" $infile) ) echo "${pckname_from_HTML[*]}" }