aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.lua
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-02-25 15:02:01 -0500
committerAdam Harrison <adamdharrison@gmail.com>2024-02-25 15:02:01 -0500
commit55bd3971ac10cf80cbb1436997b6ece52bc52a2c (patch)
tree5290006a3d00f00640cabba42f47182ef7e19e66 /src/lpm.lua
parentb364104ab1d7f99266c042e69c8c9c97d872c05c (diff)
downloadlite-xl-plugin-manager-55bd3971ac10cf80cbb1436997b6ece52bc52a2c.tar.gz
lite-xl-plugin-manager-55bd3971ac10cf80cbb1436997b6ece52bc52a2c.zip
Added in ephemeral flag as a determinant for bottle hash construction.
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 645d5fc..2a02c89 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 ""))
+ 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.local_path = CACHEDIR .. PATHSEP .. "bottles" .. PATHSEP .. self.hash
end
return self