aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.lua
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-03-12 21:02:15 -0400
committerAdam Harrison <adamdharrison@gmail.com>2024-03-12 21:02:15 -0400
commitf677376167b401b2c8f9154ac30fcd21b8aff238 (patch)
tree653bdd9a05abaca01808f11799a00d43679921c0 /src/lpm.lua
parenta2be4feb021023408f19829b56219a21da2a2e07 (diff)
downloadlite-xl-plugin-manager-f677376167b401b2c8f9154ac30fcd21b8aff238.tar.gz
lite-xl-plugin-manager-f677376167b401b2c8f9154ac30fcd21b8aff238.zip
Fixed minor issue.
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 83f833f..631f1ee 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -604,7 +604,7 @@ function common.get(source, options)
if headers.location then return common.get(headers.location, common.merge(options, { depth = (depth or 0) + 1 })) end
return res
end
- local cache_dir = checksum ~= "SKIP" and TMPDIR or (options.cache or CACHEDIR)
+ local cache_dir = checksum == "SKIP" and TMPDIR or (options.cache or CACHEDIR)
if not system.stat(cache_dir .. PATHSEP .. "files") then common.mkdirp(cache_dir .. PATHSEP .. "files") end
local cache_path = cache_dir .. PATHSEP .. "files" .. PATHSEP .. system.hash(checksum .. source)
if checksum ~= "SKIP" and system.stat(cache_path) and system.hash(cache_path, "file") ~= checksum then common.rmrf(cache_path) end