From ddb255356f29df33eeb1cd6d52b0e1e673eb50e5 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Wed, 23 Aug 2023 16:31:58 -0400 Subject: Made us clear the entire bottle if we're reconstructing which is a lot safer. --- src/lpm.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lpm.lua b/src/lpm.lua index e1f3018..ebd4e59 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -1310,8 +1310,8 @@ function Bottle:is_constructed() return self.is_system or system.stat(self.local function Bottle:construct() if self.is_system then error("system bottle cannot be constructed") end if self:is_constructed() and not REINSTALL then error("bottle " .. self.hash .. " already constructed") end + common.rmrf(self.local_path) if not self.lite_xl:is_installed() then self.lite_xl:install() end - common.rmrf(self.local_path .. PATHSEP .. "user") common.mkdirp(self.local_path .. PATHSEP .. "user") -- Always copy the executbale, because of the way that lite determines the user folder (for now). -- cgit v1.2.3