aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-05-13 17:40:43 -0400
committerAdam Harrison <adamdharrison@gmail.com>2024-05-13 17:40:43 -0400
commit22152f16b4d4da511dfc25a6dacc194419cacce6 (patch)
tree1ffa3057d2a36196e167d5e49b8edde6a1a9e044
parent1a8998604561cd4308be8b76cdc12d6d1b0168f2 (diff)
downloadlite-xl-plugin-manager-22152f16b4d4da511dfc25a6dacc194419cacce6.tar.gz
lite-xl-plugin-manager-22152f16b4d4da511dfc25a6dacc194419cacce6.zip
Ugh.
-rw-r--r--src/lpm.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index c8f1986..f17fcb8 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -735,7 +735,7 @@ function Addon.new(repository, metadata)
self.local_path = (repository.local_path .. (self.path and (PATHSEP .. self.path:gsub("^/", ""):gsub("%.$", "")) or "")) or nil
end
end
- self.organization = metadata.organization or (((self.files and #self.files > 0) or (not self.path and not self.url) or not (self.local_path and (system.stat(self.local_path) or {}).type == "file")) and "complex" or "singleton")
+ self.organization = metadata.organization or (((self.files and #self.files > 0) or (not self.url and (not self.path or not (self.local_path and (system.stat(self.local_path) or {}).type == "file")))) and "complex" or "singleton")
return self
end