diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2024-02-06 21:38:29 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2024-02-06 21:38:29 -0500 |
commit | f8378d3ca44c93e14dfc16ce5f035446c75d657d (patch) | |
tree | 79b02e3c0148ec980789a407e9d08d7338b08b95 /src/lpm.lua | |
parent | 052db5d4be2cde203636e954e8ad9897d3ccc7fc (diff) | |
download | lite-xl-plugin-manager-f8378d3ca44c93e14dfc16ce5f035446c75d657d.tar.gz lite-xl-plugin-manager-f8378d3ca44c93e14dfc16ce5f035446c75d657d.zip |
Doubled response header buffer, added in better error handling for responses, and added in logging and checksum updating of remote file singletons.
Diffstat (limited to 'src/lpm.lua')
-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 af2a507..079bc40 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -2386,8 +2386,9 @@ not commonly used publically. end end for _, section in ipairs(common.concat(m.addons or {}, m["lite-xls"] or {})) do - for _, file in ipairs(section.files or {}) do + for _, file in ipairs(common.concat({ section }, section.files or {})) do if (not filter or (section.id and filter[section.id])) and file.url and file.checksum ~= "SKIP" and type(file.checksum) == "string" then + log_action("Computing checksum for " .. (section.id or section.version) .. " (" .. file.url .. ")...") local checksum = system.hash(common.get(file.url)) if computed[file.checksum] and computed[file.checksum] ~= checksum then error("can't update manifest; existing checksum " .. file.checksum .. " exists in two separate places that now have disparate checksum values") |