aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-03-19 16:47:12 -0400
committerAdam Harrison <adamdharrison@gmail.com>2023-03-19 16:47:12 -0400
commita589e9efe13255b052491c6d34306ca9dee4aba5 (patch)
treeb30d28b2ce1f20cf8d4daba8d16af9eb96df4626 /src
parent1da290c19ddfedcb52be24de5a3eee1b2e23c24b (diff)
downloadlite-xl-plugin-manager-a589e9efe13255b052491c6d34306ca9dee4aba5.tar.gz
lite-xl-plugin-manager-a589e9efe13255b052491c6d34306ca9dee4aba5.zip
Fixed an issue with --no-install-optional being non-functional.
Diffstat (limited to 'src')
-rw-r--r--src/lpm.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index 901067b..e9dbcb3 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -743,7 +743,7 @@ function Addon:install(bottle, installing)
if installing[addon] then
error("circular dependency detected in " .. self.id .. ": requires " .. addon .. " but, " .. addon .. " requires " .. self.id)
end
- if not NO_INSTALL_OPTIONAL and (not v.optional or prompt(addon .. " is an optional dependency of " .. self.id .. ". Should we install it?")) then
+ if not v.optional or (not NO_INSTALL_OPTIONAL and prompt(addon .. " is an optional dependency of " .. self.id .. ". Should we install it?")) then
compatible[addon]:install(bottle, installing)
end
end
@@ -1753,7 +1753,7 @@ xpcall(function()
json = "flag", userdir = "string", cachedir = "string", version = "flag", verbose = "flag",
quiet = "flag", version = "flag", ["mod-version"] = "string", remotes = "flag", help = "flag",
remotes = "flag", ["ssl-certs"] = "string", force = "flag", arch = "array", ["assume-yes"] = "flag",
- ["install-optional"] = "flag", datadir = "string", binary = "string", trace = "flag", progress = "flag",
+ ["no-install-optional"] = "flag", datadir = "string", binary = "string", trace = "flag", progress = "flag",
symlink = "flag",
-- filtration flags
author = "string", tag = "string", stub = "string", dependency = "string", status = "string",