diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2023-08-23 16:31:58 -0400 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2023-08-23 16:31:58 -0400 |
commit | ddb255356f29df33eeb1cd6d52b0e1e673eb50e5 (patch) | |
tree | 77611f9deb51ac1f74209cfd2c4245032ceb0822 | |
parent | 02b266534299f9a986636311c52e6eeb4de5cbe2 (diff) | |
download | lite-xl-plugin-manager-ddb255356f29df33eeb1cd6d52b0e1e673eb50e5.tar.gz lite-xl-plugin-manager-ddb255356f29df33eeb1cd6d52b0e1e673eb50e5.zip |
Made us clear the entire bottle if we're reconstructing which is a lot safer.
-rw-r--r-- | src/lpm.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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). |