# HG changeset patch # User "Yann E. MORIN" # Date 1189278045 0 # Node ID 29c6c5e10cead2c07fd0bec22f7e3ff1ff7f1632 # Parent 26fe0433ce294039aacbb4e2151c748ded92a924 Use symlinks to the localy stored tarballs rather than copying them. If saving tarballs to local storage is selected, move newly downloaded tarballs there and symlink. diff -r 26fe0433ce29 -r 29c6c5e10cea scripts/functions --- a/scripts/functions Sat Sep 08 10:32:53 2007 +0000 +++ b/scripts/functions Sat Sep 08 19:00:45 2007 +0000 @@ -337,8 +337,8 @@ CT_DoLog DEBUG "Trying \"${CT_LOCAL_TARBALLS_DIR}/${file}${ext}\"" if [ -r "${CT_LOCAL_TARBALLS_DIR}/${file}${ext}" -a \ "${CT_FORCE_DOWNLOAD}" != "y" ]; then - CT_DoLog EXTRA "Retrieving \"${file}\" from local storage" - cp -v "${CT_LOCAL_TARBALLS_DIR}/${file}${ext}" "${file}${ext}" |CT_DoLog ALL + CT_DoLog EXTRA "Using \"${file}\" from local storage" + ln -sv "${CT_LOCAL_TARBALLS_DIR}/${file}${ext}" "${file}${ext}" |CT_DoLog ALL return 0 fi done @@ -355,7 +355,8 @@ # above, when looking for local copies. if [ "${CT_SAVE_TARBALLS}" = "y" ]; then CT_DoLog EXTRA "Saving \"${file}\" to local storage" - cp -v "${file}${ext}" "${CT_LOCAL_TARBALLS_DIR}" |CT_DoLog ALL + mv "${file}${ext}" "${CT_LOCAL_TARBALLS_DIR}" |CT_DoLog ALL + ln -sv "${CT_LOCAL_TARBALLS_DIR}/${file}${ext}" "${file}${ext}" |CT_DoLog ALL fi return 0 fi