From 4f381aa35d66185b97bfba62d4002857660118f1 Mon Sep 17 00:00:00 2001 From: Gaspartcho <93390411+Gaspartcho@users.noreply.github.com> Date: Fri, 23 Feb 2024 18:59:56 +0100 Subject: Update extract: .tgz and +100 char name support (#73) * added tar support * fixed small mistake * added support for utar + removed microtar as submodule * will finish this tomorow * added support for gnu and other * re-done all small changes * fixed pax format (hopefully) * added a r to 'curent_read' --- src/lpm.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lpm.lua') diff --git a/src/lpm.lua b/src/lpm.lua index 7beb181..3f2a6ab 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -873,7 +873,7 @@ function Addon:install(bottle, installing) else common.get(file.url, temporary_path, file.checksum, write_progress_bar) local basename = common.basename(target_path) - local is_archive = basename:find("%.zip$") or basename:find("%.tar%.gz$") + local is_archive = basename:find("%.zip$") or basename:find("%.tar%.gz$") or basename:find("%.tgz$") local target = temporary_path if is_archive or basename:find("%.gz$") then log_action("Extracting file " .. basename .. " in " .. install_path) -- cgit v1.2.3