aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.lua
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-07-23 14:22:01 -0400
committerAdam Harrison <adamdharrison@gmail.com>2024-07-23 14:22:01 -0400
commit1564bb1ca6570868bbf45c896d679ac45c73fbdc (patch)
treebb54e79eff71ea57314438597736e7d4baaf26d0 /src/lpm.lua
parentf886d77abc5be9eddf4fd0ea8c78754dfd46d819 (diff)
downloadlite-xl-plugin-manager-1564bb1ca6570868bbf45c896d679ac45c73fbdc.tar.gz
lite-xl-plugin-manager-1564bb1ca6570868bbf45c896d679ac45c73fbdc.zip
Stopped backfilling path for stubs.
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 783d4d6..7d0d505 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -701,7 +701,7 @@ function Addon.__index(self, idx) return rawget(self, idx) or Addon[idx] end
function Addon.new(repository, metadata)
if type(metadata.id) ~= 'string' or metadata.id:find("[^a-z0-9%-_]") then error("addon requires a valid id " .. (metadata.id and "(" .. metadata.id .. " is invalid)" or "")) end
local type = metadata.type or "plugin"
- if metadata.type ~= "meta" and not metadata.path and not metadata.files and not metadata.url then metadata.path = "." end
+ if metadata.type ~= "meta" and not metadata.path and not metadata.files and not metadata.url and not metadata.remote then metadata.path = "." end
if metadata.path then metadata.path = metadata.path:gsub("/", PATHSEP) end
local self = setmetatable(common.merge({
repository = repository,