libnetwork.lib: simplify sed expression

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-04-14 23:16:20 +02:00
parent 2461f2ef9b
commit 463df99f6c

View File

@ -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[*]}"
}