diff options
| -rw-r--r-- | xmake/modules/utils/archive/extract.lua | 5 |
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 |
