diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-08-10 23:09:06 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-08-10 23:09:06 +0200 |
commit | 37db634a000f70cfe90e2bf641926d722285ebf0 (patch) | |
tree | 048b735d70ef41b6a6d1989dd0baa7517cad9174 /scripts/functions | |
parent | e83c7dc21f26b745ad1c6e7f193864055e532527 (diff) | |
download | crosstool-ng-37db634a000f70cfe90e2bf641926d722285ebf0.tar.gz crosstool-ng-37db634a000f70cfe90e2bf641926d722285ebf0.tar.bz2 crosstool-ng-37db634a000f70cfe90e2bf641926d722285ebf0.zip |
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>
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/functions b/scripts/functions index b95879c2..298c75ac 100644 --- a/scripts/functions +++ b/scripts/functions @@ -527,7 +527,9 @@ CT_GetFile() { esac # Does it exist localy? - CT_GetLocal "${file}" ${first_ext} && return 0 || true + if CT_GetLocal "${file}" ${first_ext}; then + return 0 + fi # No, it does not... # Try to retrieve the file @@ -561,9 +563,8 @@ CT_GetFile() { done done - # Just warn, someone may want to catch and handle the error + # Just return error, someone may want to catch and handle the error # (eg. glibc/eglibc add-ons can be missing). - CT_DoLog WARN "Could not retrieve '${file}'." return 1 } |