libnetwork.lib: repository.get_srpm_pckname_from_site(): make the search case-insensitive

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-04-30 23:58:25 +02:00
parent c77c428ff1
commit 50b3fe9d32
3 changed files with 11 additions and 2 deletions

View File

@ -57,6 +57,10 @@ Tue Maj 01 2012 Davide Madrisan <davide.madrisan(a)gmail.com>
This obviously modify the name of packages containing uppercase letters...
(Another regression (!) discovered and debugged by Silvan Calarco).
+ update
* lib/libnetwork.lib - Davide Madrisan:
repository.get_srpm_pckname_from_site(): make the search case insensitive.
-------------------------------------------------------------------------------
Changes in version 1.9.4

5
NEWS
View File

@ -29,6 +29,11 @@ List of user visible changes in the release 1.10.0
specfile.newrelease(): do not ignore the release set by user at command
line. (Bug discovered by Silvan Calarco).
-- Update
* pck-update, lib/libnetwork.lib - Davide Madrisan:
Action 0: the search with regular expressions is now case insensitive.
-------------------------------------------------------------------------------
List of user visible changes in the release 1.9.4

View File

@ -102,9 +102,9 @@ function repository.get_srpm_pckname_from_site() {
notify.debug "$FUNCNAME: parsing HTML dump..."
local pckname_from_HTML=($(sed -n "\
# remove HTML tags --> get a better input
/<a href=\".*\.src\.rpm\"/{
/<[aA]\+ [hH]\+[rR]\+[eE]\+[fF]\+=\".*\.src\.rpm\"/{
s|.*<[aA]\+ [hH]\+[rR]\+[eE]\+[fF]\+=\"\([^\"]*\)\".*|\1|
{/$regexpr/p}}" $infile))
{/$regexpr/Ip}}" $infile))
echo "${pckname_from_HTML[*]}"
elif [ "$is_ftp" = "1" ]; then
notify.debug "$FUNCNAME: parsing FTP dump..."