diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2024-01-07 12:00:44 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2024-01-07 12:00:44 -0500 |
commit | dd4119770bc2c90c198f92ed17c0272c2e5e7cd2 (patch) | |
tree | fcc4f7fe08ebeaeb453d0fcf1ba3539da4977319 /src/lpm.lua | |
parent | 1feceeabd86785c8edb291143edaeace9d2be22b (diff) | |
download | lite-xl-plugin-manager-dd4119770bc2c90c198f92ed17c0272c2e5e7cd2.tar.gz lite-xl-plugin-manager-dd4119770bc2c90c198f92ed17c0272c2e5e7cd2.zip |
Added in changes from @parnikkapore to fix ssl certificates in a directory.
Diffstat (limited to 'src/lpm.lua')
-rw-r--r-- | src/lpm.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lpm.lua b/src/lpm.lua index 4222db5..db05a92 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -668,7 +668,7 @@ function Addon:unstub() repo = Repository.url(self.remote):fetch_if_not_present() local manifest = repo:parse_manifest(self.id) local remote_entry = common.grep(manifest['addons'] or manifest['plugins'], function(e) return e.id == self.id end)[1] - if not remote_entry then error("can't find " .. self.type .. " on " .. self.remote) end + if not remote_entry then error("can't find " .. self.type .. " " .. self.id .. " on " .. self.remote) end local addon = Addon.new(repo, remote_entry) -- merge in attribtues that are probably more accurate than the stub @@ -770,7 +770,7 @@ end function Addon:install(bottle, installing) if self:is_installed(bottle) and not REINSTALL then error("addon " .. self.id .. " is already installed") return end if self:is_stub() then self:unstub() end - if self.inaccessible then error("addon " .. self.id .. " is inacessible: " .. self.inaccessible) end + if self.inaccessible then error("addon " .. self.id .. " is inaccessible: " .. self.inaccessible) end local install_path = self:get_install_path(bottle) if install_path:find(USERDIR, 1, true) ~= 1 and install_path:find(TMPDIR, 1, true) ~= 1 then error("invalid install path: " .. install_path) end local temporary_install_path = TMPDIR .. PATHSEP .. install_path:sub(((install_path:find(TMPDIR, 1, true) == 1) and #TMPDIR or #USERDIR) + 2) |