diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2023-03-19 16:55:05 -0400 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2023-03-19 16:55:05 -0400 |
commit | dca7c64c2f339aa2c522c0c7687a85fd2b0e08b0 (patch) | |
tree | 24b8fb8d68d1f57387f628341198155e189c8513 /src | |
parent | a07403f3f1f95625619dc6df4ff24d1bb03eb549 (diff) | |
download | lite-xl-plugin-manager-dca7c64c2f339aa2c522c0c7687a85fd2b0e08b0.tar.gz lite-xl-plugin-manager-dca7c64c2f339aa2c522c0c7687a85fd2b0e08b0.zip |
Fixed an additional bug with --no-install-optional.
Diffstat (limited to 'src')
-rw-r--r-- | src/lpm.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpm.lua b/src/lpm.lua index e9dbcb3..fe07990 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -792,7 +792,7 @@ function Addon:install(bottle, installing) local file_arch = file.arch and type(file.arch) == "string" and { file.arch } or file.arch if not file.arch or #common.grep(file_arch, function(e) return e == arch end) > 0 then if file.arch then has_one_file = true end - if not NO_INSTALL_OPTIONAL and (not file.optional or prompt(common.basename(file.url) .. " is an optional dependency of " .. self.id .. ". Should we install it?")) then + if not file.optional or (not NO_INSTALL_OPTIONAL and prompt(common.basename(file.url) .. " is an optional dependency of " .. self.id .. ". Should we install it?")) then if not file.checksum then error("requires a checksum") end local target_path = install_path .. PATHSEP .. (file.path or common.basename(file.url)) local temporary_path = temporary_install_path .. PATHSEP .. (file.path or common.basename(file.url)) |