# HG changeset patch # User "Yann E. MORIN" # Date 1190567898 0 # Node ID 5c2145db8f0f55ba36baa4ec8e11d51e62cc816b # Parent 197e1b49586e0005624f7bb1854ae5d7f584e6c4 Do not try to save new;y downloaded tarballs to local storage if the directory does not exist. diff -r 197e1b49586e -r 5c2145db8f0f scripts/crosstool.sh --- a/scripts/crosstool.sh Sun Sep 23 17:08:09 2007 +0000 +++ b/scripts/crosstool.sh Sun Sep 23 17:18:18 2007 +0000 @@ -99,8 +99,14 @@ # Make all path absolute, it so much easier! CT_LOCAL_TARBALLS_DIR="`CT_MakeAbsolutePath \"${CT_LOCAL_TARBALLS_DIR}\"`" +# 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." + CT_SAVE_TARBALLS="" +fi + # Some more sanity checks now that we have all paths set up -case "${CT_TARBALLS_DIR},${CT_SRC_DIR},${CT_BUILD_DIR},${CT_PREFIX_DIR},${CT_INSTALL_DIR}" in +case "${CT_LOCAL_TARBALLS_DIR},${CT_TARBALLS_DIR},${CT_SRC_DIR},${CT_BUILD_DIR},${CT_PREFIX_DIR},${CT_INSTALL_DIR}" in *" "*) CT_Abort "Don't use spaces in paths, it breaks things.";; esac