aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.lua
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-02-25 15:08:20 -0500
committerAdam Harrison <adamdharrison@gmail.com>2024-02-25 15:08:20 -0500
commit22597dd5db00bf91cabf803f3e5515d61a9182bf (patch)
treeef99f5eef4b4cc4449610dbef085f99a58581fbd /src/lpm.lua
parent55bd3971ac10cf80cbb1436997b6ece52bc52a2c (diff)
downloadlite-xl-plugin-manager-22597dd5db00bf91cabf803f3e5515d61a9182bf.tar.gz
lite-xl-plugin-manager-22597dd5db00bf91cabf803f3e5515d61a9182bf.zip
Made hash backwards compatible.
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 2a02c89..f4dbbbe 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -1332,7 +1332,7 @@ function Bottle.new(lite_xl, addons, config, is_system)
}, Bottle)
if not is_system then
table.sort(self.addons, function(a, b) return (a.id .. ":" .. a.version) < (b.id .. ":" .. b.version) end)
- self.hash = system.hash(lite_xl.version .. " " .. common.join(" ", common.map(self.addons, function(p) return (p.repository and p.repository:url() or "") .. ":" .. p.id .. ":" .. p.version end)) .. (config or "") .. (EPHEMERAL and "E" or "P"))
+ self.hash = system.hash(lite_xl.version .. " " .. common.join(" ", common.map(self.addons, function(p) return (p.repository and p.repository:url() or "") .. ":" .. p.id .. ":" .. p.version end)) .. (config or "") .. (EPHEMERAL and "E" or ""))
self.local_path = CACHEDIR .. PATHSEP .. "bottles" .. PATHSEP .. self.hash
end
return self