Add support GHCUP_META_DOWNLOAD_URL and GHCUP_META_VERSION_URL, fixes #45
Allowing to overwrite .download-urls and .available-versions URLs. Example: GHCUP_META_DOWNLOAD_URL=file://$(pwd)/.download-urls \ GHCUP_META_VERSION_URL=file://$(pwd)/.available-versions \ ./ghcup --verbose list
This commit is contained in:
parent
310fe03b1f
commit
bcdff68d54
4
ghcup
4
ghcup
@ -135,7 +135,7 @@ SCRIPT_UPDATE_URL="${BASE_DOWNLOAD_URL}/ghcup"
|
|||||||
# DESCRIPTION:
|
# DESCRIPTION:
|
||||||
# The url of the meta file for getting
|
# The url of the meta file for getting
|
||||||
# download information for ghc/cabal-install etc.
|
# download information for ghc/cabal-install etc.
|
||||||
META_DOWNLOAD_URL="${BASE_DOWNLOAD_URL}/.download-urls"
|
META_DOWNLOAD_URL="${GHCUP_META_DOWNLOAD_URL:=${BASE_DOWNLOAD_URL}/.download-urls}"
|
||||||
|
|
||||||
# @VARIABLE: META_DOWNLOAD_FORMAT
|
# @VARIABLE: META_DOWNLOAD_FORMAT
|
||||||
# DESCRIPTION:
|
# DESCRIPTION:
|
||||||
@ -148,7 +148,7 @@ META_DOWNLOAD_FORMAT="1"
|
|||||||
# DESCRIPTION:
|
# DESCRIPTION:
|
||||||
# The url of the meta file for getting
|
# The url of the meta file for getting
|
||||||
# available versions for ghc/cabal-install etc.
|
# available versions for ghc/cabal-install etc.
|
||||||
META_VERSION_URL="${BASE_DOWNLOAD_URL}/.available-versions"
|
META_VERSION_URL="${GHCUP_META_VERSION_URL:=${BASE_DOWNLOAD_URL}/.available-versions}"
|
||||||
|
|
||||||
# @VARIABLE: META_VERSION_FORMAT
|
# @VARIABLE: META_VERSION_FORMAT
|
||||||
# DESCRIPTION:
|
# DESCRIPTION:
|
||||||
|
Loading…
Reference in New Issue
Block a user