aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.lua
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-01-16 21:10:21 -0500
committerAdam Harrison <adamdharrison@gmail.com>2023-01-16 21:10:21 -0500
commit21eae5da72f3a96482ff479841b214a01ede3652 (patch)
tree111861b1e848b7a350d6d7be34ff763cbdc7cdb3 /src/lpm.lua
parent14578e4d072e780678a7e98b14a13372809e6022 (diff)
downloadlite-xl-plugin-manager-0.9992.tar.gz
lite-xl-plugin-manager-0.9992.zip
Fixed some issues with naming, and calling progression function.v0.9992
Diffstat (limited to 'src/lpm.lua')
-rw-r--r--src/lpm.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index cfcfc18..b5aeaaa 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -525,7 +525,7 @@ function common.get(source, target, checksum, callback, depth)
return res
end
if not system.stat(CACHEDIR .. PATHSEP .. "files") then common.mkdirp(CACHEDIR .. PATHSEP .. "files") end
- local cache_path = CACHEDIR .. PATHSEP .. "files" .. PATHSEP .. checksum
+ local cache_path = CACHEDIR .. PATHSEP .. "files" .. PATHSEP .. (checksum ~= "SKIP" and checksum or system.hash(source))
if not system.stat(cache_path) then
local res, headers = system.get(protocol, hostname, port, rest, cache_path, callback)
if headers.location then return common.get(headers.location, target, checksum, callback, (depth or 0) + 1) end