From 16835d9b6b19973ee4dc30bb41c1f0da1a6aa0d7 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 9 Sep 2019 13:01:15 +0800 Subject: Update extract.lua --- xmake/modules/utils/archive/extract.lua | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.3.1