summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-09-09 13:01:15 +0800
committerGitHub <[email protected]>2019-09-09 13:01:15 +0800
commit16835d9b6b19973ee4dc30bb41c1f0da1a6aa0d7 (patch)
tree9e4c533fa4613db3b34a2902cec729ee4156ce3a
parent3333ef1226c64ad71a4a26fbfbba24bd50616e46 (diff)
Update extract.lua
-rw-r--r--xmake/modules/utils/archive/extract.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/utils/archive/extract.lua b/xmake/modules/utils/archive/extract.lua
index 305e9f325..fcb1a9a57 100644
--- a/xmake/modules/utils/archive/extract.lua
+++ b/xmake/modules/utils/archive/extract.lua
@@ -124,6 +124,11 @@ function _extract_using_7z(archivefile, outputdir, extension, opt)
if excludesfile then
os.tryrm(excludesfile)
end
+
+ -- remove unused pax_global_header file after extracting .tar file
+ if extension == ".tar" then
+ os.tryrm(path.join(outputdir, "pax_global_header"))
+ end
-- continue to extract *.tar file
if outputdir_old then