From 22152f16b4d4da511dfc25a6dacc194419cacce6 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Mon, 13 May 2024 17:40:43 -0400 Subject: Ugh. --- src/lpm.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3