From 8f57ec4a1c7d5d88a89e9995f650853fe546e5f1 Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Sun, 29 Apr 2012 00:10:30 +0200 Subject: [PATCH] libnetwork.lib: do not convert curl dumps to lowercase letters Signed-off-by: Davide Madrisan --- ChangeLog | 6 ++++++ lib/libnetwork.lib.in | 17 +++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5e6c3cd..6c8c8f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -51,6 +51,12 @@ Wed Apr 18 2012 Davide Madrisan specfile.newrelease(): do not ignore the release set by user at command line. (Bug discovered by Silvan Calarco). ++ bugfix + * lib/libnetwork.lib - Davide Madrisan: + repository.get_srpm_pckname_from_site(): do not lower the curl dump. + This obviously modify the name of packages containing uppercase letters... + (Another regression (!) discovered and debugged by Silvan Calarco). + ------------------------------------------------------------------------------- Changes in version 1.9.4 diff --git a/lib/libnetwork.lib.in b/lib/libnetwork.lib.in index 2da0de0..ae4d812 100644 --- a/lib/libnetwork.lib.in +++ b/lib/libnetwork.lib.in @@ -79,7 +79,7 @@ function repository.get_srpm_pckname_from_site() { [ "$is_ftp" != "$is_html" ] || notify.error $"\ (bug)"" -- $FUNCNAME: "$"usage error (--ftp/--html)" - local pck_name="$(echo "$1" | tr A-Z a-z)" + local pck_name="$1" local infile="$2" [ "$pck_name" ] || notify.error $"\ @@ -100,16 +100,15 @@ function repository.get_srpm_pckname_from_site() { if [ "$is_html" = "1" ]; then notify.debug "$FUNCNAME: parsing HTML dump..." - local pckname_from_HTML=($(tr A-Z a-z < $infile | \ - sed -n "# remove HTML tags --> get a better input - / get a better input +/