diff options
| author | ruki <[email protected]> | 2021-08-27 00:34:13 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-08-27 00:34:13 +0800 |
| commit | 3bcc30765c2a337016ae8a992ce2d5a65ecd2d0a (patch) | |
| tree | 92995b8abc3cbb2086aa9bf9397b4d72e483fa67 /xmake/modules/private/action/require/impl/actions/patch_sources.lua | |
| parent | f31f70694d9cb10d002a7af0806d2a0809c64866 (diff) | |
improve download url
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 |
