# HG changeset patch # User "Yann E. MORIN" # Date 1313010546 -7200 # Node ID c096c896e74588435e863957d865f3f84dd001f1 # Parent d28b764334b8f8f3acfecafea3b52a6cc2e8a272 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" diff -r d28b764334b8 -r c096c896e745 scripts/functions --- a/scripts/functions Tue Aug 09 22:10:57 2011 +0200 +++ b/scripts/functions Wed Aug 10 23:09:06 2011 +0200 @@ -527,7 +527,9 @@ 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 @@ 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 }