diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2023-05-22 16:03:15 -0400 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2023-05-22 16:03:15 -0400 |
commit | 07c0841b6fe5b33aa9b4d99decfe71509f650b83 (patch) | |
tree | ee9a54079e50fd7ad9d821e6a42a03e09b9588f7 /src | |
parent | da5096f50466b94a8ed0ff181f45e35bfccea898 (diff) | |
download | lite-xl-plugin-manager-07c0841b6fe5b33aa9b4d99decfe71509f650b83.tar.gz lite-xl-plugin-manager-07c0841b6fe5b33aa9b4d99decfe71509f650b83.zip |
Added in additional case where REINSTALL affects things.
Diffstat (limited to 'src')
-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 e12f8d5..339b244 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -1594,7 +1594,7 @@ local function lpm_install(type, ...) lpm_lite_xl_install(version) else local potential_addons = { system_bottle:get_addon(id, version, { mod_version = system_bottle.lite_xl.mod_version }) } - local addons = common.grep(potential_addons, function(e) return not e:is_installed(system_bottle) end) + local addons = common.grep(potential_addons, function(e) return not e:is_installed(system_bottle) or REINSTALL end) if #addons == 0 and #potential_addons == 0 then error("can't find " .. (type or "addon") .. " " .. id .. " mod-version: " .. (system_bottle.lite_xl.mod_version or 'any')) end if #addons == 0 then log_warning((potential_addons[1].type or "addon") .. " " .. id .. " already installed") |