summaryrefslogtreecommitdiff
path: root/xmake/modules/utils/archive/extension.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/utils/archive/extension.lua')
-rw-r--r--xmake/modules/utils/archive/extension.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/modules/utils/archive/extension.lua b/xmake/modules/utils/archive/extension.lua
index aff579bd3..2dd7d4c97 100644
--- a/xmake/modules/utils/archive/extension.lua
+++ b/xmake/modules/utils/archive/extension.lua
@@ -22,9 +22,10 @@
import("core.base.hashset")
-- get the archive extension
-function main(archivefile)
+function main(url)
+ local urlpath = url:split('?', {plain = true})[1]
local extension = ""
- local filename = path.filename(archivefile)
+ local filename = path.filename(urlpath)
local extensionset = hashset.from({
".xmz", -- xmake compression format
".zip", ".7z", ".gz", ".xz", ".zst", ".tgz",