Skip to content

Commit

Permalink
Skip the web proxy when downloading from proxy endpoint (sonic-net#7592)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
xumia committed May 18, 2021
1 parent f27aa33 commit ef7bde1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sonic-build-hooks/scripts/buildinfo_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ef7bde1

Please sign in to comment.