diff options
| author | OpportunityLiu <[email protected]> | 2019-07-02 13:58:28 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-07-02 13:58:28 +0800 |
| commit | 0b9ed8ef1139530d732331d65280ef003213cc09 (patch) | |
| tree | 0423c8f6a21132ec7141289d80bec009491835a4 /xmake/actions/require/impl/action/patch.lua | |
| parent | 7d43ca494348e21400285c86be66872adb7e54d8 (diff) | |
| parent | db0b2ae6096ea05dc990ac7d975e194cca75035e (diff) | |
merge dev
Diffstat (limited to 'xmake/actions/require/impl/action/patch.lua')
| -rw-r--r-- | xmake/actions/require/impl/action/patch.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/actions/require/impl/action/patch.lua b/xmake/actions/require/impl/action/patch.lua index bab50f9c5..cde52ec12 100644 --- a/xmake/actions/require/impl/action/patch.lua +++ b/xmake/actions/require/impl/action/patch.lua @@ -30,7 +30,7 @@ function _patch(package, patch_url, patch_hash) vprint("patching %s to %s-%s ..", patch_url, package:name(), package:version_str()) -- get the patch file - local patch_file = path.join(os.tmpdir(), "patches", package:name(), package:version_str(), path.filename(patch_url)) + local patch_file = path.join(os.tmpdir(), "patches", package:name(), package:version_str(), (path.filename(patch_url):gsub("%?.+$", ""))) -- the package file have been downloaded? local cached = true |
