diff options
| author | Ângelo Andrade Cirino <[email protected]> | 2022-01-10 10:23:17 -0300 |
|---|---|---|
| committer | Ângelo Andrade Cirino <[email protected]> | 2022-01-10 10:23:17 -0300 |
| commit | ed0c0c5e0249aa966ea7061b30710abdd0b09d87 (patch) | |
| tree | 2a51c869a3aea1a093ed569e749bdf0465634a6c /xmake/modules/private/action/require/impl/actions/patch_sources.lua | |
| parent | 885d00da8caf74aeed758d030b9a1b50d9078e1f (diff) | |
| parent | 2431dd7e6142ff98b55741cfd4de4d2e69f4f8b5 (diff) | |
Merged from upstream/master
Diffstat (limited to 'xmake/modules/private/action/require/impl/actions/patch_sources.lua')
| -rw-r--r-- | xmake/modules/private/action/require/impl/actions/patch_sources.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/impl/actions/patch_sources.lua b/xmake/modules/private/action/require/impl/actions/patch_sources.lua index 23d46f3d3..d5874f8f5 100644 --- a/xmake/modules/private/action/require/impl/actions/patch_sources.lua +++ b/xmake/modules/private/action/require/impl/actions/patch_sources.lua @@ -50,6 +50,7 @@ end function _patch(package, patch_url, patch_hash) -- trace + patch_url = proxy.mirror(patch_url) or patch_url vprint("patching %s to %s-%s ..", patch_url, package:name(), package:version_str()) -- get the patch file @@ -72,7 +73,7 @@ function _patch(package, patch_url, patch_hash) -- download the patch file if patch_url:find(string.ipattern("https-://")) or patch_url:find(string.ipattern("ftps-://")) then - http.download(proxy.mirror(patch_url) or patch_url, patch_file) + http.download(patch_url, patch_file) else -- copy the patch file if os.isfile(patch_url) then |
