diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-12-14 18:17:37 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-12-14 18:17:37 (GMT) |
commit | 75f0ec107c2d28b034957b998568aa82b4a2e0c0 (patch) | |
tree | 560d9f9ab254f535a79df5400f3994532077df5c /scripts | |
parent | 6c6415a101488242627360368705449291428dd9 (diff) |
scripts: correctly warn when the local tarballs directory does not exist
Warn about a missing local tarball directory, only if it was configured.
Avoid the spurious message:
Directory '${CT_LOCAL_TARBALLS_DIR}' does not exist.
Will not save downloaded tarballs to local storage.
Thanks to "Pedro I. Sanchez" <psanchez@colcan.ca> for pointing out the
issue:
http://sourceware.org/ml/crossgcc/2009-12/msg00011.html
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/crosstool-NG.sh.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in index f1e38fc..d4e15fe 100644 --- a/scripts/crosstool-NG.sh.in +++ b/scripts/crosstool-NG.sh.in @@ -168,8 +168,10 @@ if [ -n "${CT_RESTART}" -a ! -d "${CT_STATE_DIR}" ]; then fi # If the local tarball directory does not exist, say so, and don't try to save there! -if [ ! -d "${CT_LOCAL_TARBALLS_DIR}" ]; then - CT_DoLog WARN "Directory '${CT_LOCAL_TARBALLS_DIR}' does not exist. Will not save downloaded tarballs to local storage." +if [ "${CT_SAVE_TARBALLS}" = "y" \ + -a ! -d "${CT_LOCAL_TARBALLS_DIR}" ]; then + CT_DoLog WARN "Directory '${CT_LOCAL_TARBALLS_DIR}' does not exist." + CT_DoLog WARN "Will not save downloaded tarballs to local storage." CT_SAVE_TARBALLS= fi |