diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2024-03-23 15:34:08 -0400 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2024-03-23 15:34:08 -0400 |
commit | 9fe3c05627014c3568b37d763a7cb4b6d13bfa1c (patch) | |
tree | 001ba80ffa550e5df296318f646fcd851d7fcf98 /src/lpm.lua | |
parent | f5d74c2591dd7ab013a579c0206881deb2eb2518 (diff) | |
download | lite-xl-plugin-manager-9fe3c05627014c3568b37d763a7cb4b6d13bfa1c.tar.gz lite-xl-plugin-manager-9fe3c05627014c3568b37d763a7cb4b6d13bfa1c.zip |
Fixed issue with headers delivered in multiple reads.
Diffstat (limited to 'src/lpm.lua')
-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 ffa30f8..6496429 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -2046,7 +2046,7 @@ function lpm.describe() end function lpm.addon_upgrade() - for i,addon in ipairs(system_bottle:installed_addons()) do + for _,addon in ipairs(system_bottle:installed_addons()) do local upgrade = common.sort({ system_bottle:get_addon(addon.id, ">" .. addon.version) }, function(a, b) return compare_version(b.version, a.version) end)[1] if upgrade then upgrade:install(system_bottle) end end |