feat(install): support local source archive path in TACHYON_SOURCE_URL
This commit is contained in:
@@ -3079,7 +3079,15 @@ source_install_from_repo() {
|
||||
_archive_file="${TMP_DIR:-/tmp}/neotachyon-src.tar.gz"
|
||||
_src_dir="${TMP_DIR:-/tmp}/neotachyon-src"
|
||||
|
||||
case "$_archive_url" in
|
||||
/*|./*|../*)
|
||||
# Local path: use it as-is (e.g. pre-transferred tarball).
|
||||
_archive_file="$_archive_url"
|
||||
;;
|
||||
*)
|
||||
download_file_once "$_archive_url" "$_archive_file" || fail "Failed to download the source archive from ${_archive_url}"
|
||||
;;
|
||||
esac
|
||||
|
||||
rm -rf "$_src_dir"
|
||||
mkdir -p "$_src_dir"
|
||||
|
||||
Reference in New Issue
Block a user