scripts/functions: remove messages about failed downloads
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Aug 10 23:09:06 2011 +0200 (2011-08-10)
changeset 2599c096c896e745
parent 2597 d28b764334b8
child 2600 fac4018427d2
scripts/functions: remove messages about failed downloads

When downloading via svn/cvs/... an attempt to retrieve from the
mirror is made. If the mirror does not have the required tarball,
an error message is printed. This is misleading, as the download
may later succeed via svn/cvs/...

Remove the messages about failed downloads altogether.

At the same time, use "if ... then ... fi" instead of "... && ..."

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
scripts/functions
     1.1 --- a/scripts/functions	Tue Aug 09 22:10:57 2011 +0200
     1.2 +++ b/scripts/functions	Wed Aug 10 23:09:06 2011 +0200
     1.3 @@ -527,7 +527,9 @@
     1.4      esac
     1.5  
     1.6      # Does it exist localy?
     1.7 -    CT_GetLocal "${file}" ${first_ext} && return 0 || true
     1.8 +    if CT_GetLocal "${file}" ${first_ext}; then
     1.9 +        return 0
    1.10 +    fi
    1.11      # No, it does not...
    1.12  
    1.13      # Try to retrieve the file
    1.14 @@ -561,9 +563,8 @@
    1.15          done
    1.16      done
    1.17  
    1.18 -    # Just warn, someone may want to catch and handle the error
    1.19 +    # Just return error, someone may want to catch and handle the error
    1.20      # (eg. glibc/eglibc add-ons can be missing).
    1.21 -    CT_DoLog WARN "Could not retrieve '${file}'."
    1.22      return 1
    1.23  }
    1.24