Skip the web proxy when downloading from proxy endpoint (#7592)
Why I did it Skip to use the web proxy when the packages have been in the proxy server. For sai packages or the other packages, we will upload the the proxy server directly, the reproducible will skip to check the site, not necessary to change the version files.
This commit is contained in:
parent
14ed0baed0
commit
dc44da4e0f
@ -71,6 +71,12 @@ download_packages()
|
||||
if [[ "$para" == *://* ]]; then
|
||||
local url=$para
|
||||
local real_version=
|
||||
|
||||
# Skip to use the proxy, if the url has already used the proxy server
|
||||
if [[ $url == ${URL_PREFIX}* ]]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
if [ "$ENABLE_VERSION_CONTROL_WEB" == y ]; then
|
||||
local version=
|
||||
local filename=$(echo $url | awk -F"/" '{print $NF}' | cut -d? -f1 | cut -d# -f1)
|
||||
|
Loading…
Reference in New Issue
Block a user