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 | \
|
local pckname_from_HTML=($(tr A-Z a-z < $infile | \
|
||||||
sed -n "# remove HTML tags --> get a better input
|
sed -n "# remove HTML tags --> get a better input
|
||||||
/<[aA] [hH][rR][eE][fF]=\".*\.src\.rpm\"/{
|
/<a href=\".*\.src\.rpm\"/{
|
||||||
s|.*<[aA] [hH][rR][eE][fF]=\"\([^\"]*\)\".*|\1|
|
s|.*<a href=\"\([^\"]*\)\".*|\1|
|
||||||
{/$regexpr/p}}"))
|
{/$regexpr/p}}"))
|
||||||
echo "${pckname_from_HTML[*]}"
|
echo "${pckname_from_HTML[*]}"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user