From a40920e82e60b7a87731ba60b848b9bafa8cf937 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 1 Jul 2019 22:35:50 +0800 Subject: add protobuf rules --- xmake/actions/require/impl/action/patch.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/actions/require/impl/action/patch.lua') 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 -- cgit v1.3.1