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:
parent
c77c428ff1
commit
50b3fe9d32
@ -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
5
NEWS
@ -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
|
||||
|
@ -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..."
|
||||
|
Loading…
Reference in New Issue
Block a user