diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2024-06-09 14:34:29 -0400 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2024-06-09 14:34:29 -0400 |
commit | 064b760422cca8aee3342b3890c22b4f078e4650 (patch) | |
tree | 5a511161f91c381fdc2062a5f94713a44fe10d18 | |
parent | 886cb4bee2fa01477da35085a9418bbeb6ce4781 (diff) | |
download | lite-xl-plugin-manager-064b760422cca8aee3342b3890c22b4f078e4650.tar.gz lite-xl-plugin-manager-064b760422cca8aee3342b3890c22b4f078e4650.zip |
Added in specific check for install to guard against "*".
-rw-r--r-- | src/lpm.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lpm.lua b/src/lpm.lua index 3f07fc4..98be79c 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -1567,6 +1567,7 @@ end function Bottle:invalidate_cache() self.all_addons_cache = nil + self.installed_cache = nil end function Bottle:all_addons() @@ -1993,7 +1994,7 @@ function lpm.install(type, ...) if #to_install == 0 and #potential_addon_list == 0 then error("no addons specified for install") end local installing = {} common.each(to_install, function(e) - if not installing[e.id] then + if not installing[e.id] and (REINSTALL or not e:is_installed(system_bottle)) then e:install(system_bottle, installing) end end) |