From b57167505e68bc48cceb4ad23b8b99149c98a284 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Mon, 22 May 2023 16:17:40 -0400 Subject: Remove zip file in the case when we extract it. --- src/lpm.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lpm.lua b/src/lpm.lua index 339b244..a727bf6 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -829,6 +829,7 @@ function Addon:install(bottle, installing) if basename:find("%.zip$") or basename:find("%.tar%.gz$") then log_action("Extracting file " .. basename .. " in " .. install_path) system.extract(temporary_path, temporary_install_path) + os.remove(temporary_path) else if file.arch and file.arch ~= "*" then system.chmod(temporary_path, 448) end -- chmod any ARCH tagged file to rwx------- end -- cgit v1.2.3