summaryrefslogtreecommitdiff
path: root/xmake/actions/require/impl
diff options
context:
space:
mode:
authorruki <[email protected]>2019-07-01 22:35:50 +0800
committerruki <[email protected]>2019-07-01 09:35:01 +0800
commita40920e82e60b7a87731ba60b848b9bafa8cf937 (patch)
tree772b961a8ac0c107142ae0f743b73b332afa2140 /xmake/actions/require/impl
parentff067fda68bf431a4d46ce0149d425c7665aa2e7 (diff)
add protobuf rules
Diffstat (limited to 'xmake/actions/require/impl')
-rw-r--r--xmake/actions/require/impl/action/patch.lua2
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