From 22597dd5db00bf91cabf803f3e5515d61a9182bf Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 25 Feb 2024 15:08:20 -0500 Subject: Made hash backwards compatible. --- src/lpm.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3