libnetwork.lib: simplify sed expression
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
parent
2461f2ef9b
commit
463df99f6c
@ -55,8 +55,8 @@ function repository.get_srpm_pckname_from_HTML() {
|
||||
|
||||
local pckname_from_HTML=($(tr A-Z a-z < $infile | \
|
||||
sed -n "# remove HTML tags --> get a better input
|
||||
/<[aA] [hH][rR][eE][fF]=\".*\.src\.rpm\"/{
|
||||
s|.*<[aA] [hH][rR][eE][fF]=\"\([^\"]*\)\".*|\1|
|
||||
/<a href=\".*\.src\.rpm\"/{
|
||||
s|.*<a href=\"\([^\"]*\)\".*|\1|
|
||||
{/$regexpr/p}}"))
|
||||
echo "${pckname_from_HTML[*]}"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user