aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lpm.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index 09c6ca9..5f1ed8c 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -1808,7 +1808,7 @@ local function print_addon_info(type, addons, filters)
organization = addon.organization,
repository = addon.repository and addon.repository:url(),
path = addon:get_path(system_bottle),
- repo_path = addon.repo_path or addon.repository.local_path,
+ repo_path = addon.repo_path or (addon.repository and addon.repository.local_path or nil),
url = url
}
if addon_matches_filter(hash, filters or {}) then