pck-update (-a0): libnetwork.lib: remove trailing .src.rpm

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-04-14 22:12:51 +02:00
parent 882c043dc4
commit 7d544e6481

View File

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