diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2024-03-08 13:13:19 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2024-03-08 13:14:01 -0500 |
commit | 36da687203b80391d32e43475b9288468bea07c4 (patch) | |
tree | c9ab68ef73c87ffddecec2f7748efda32ac7084e | |
parent | 78184f8f2d27c7355db212cf6de408a967546354 (diff) | |
download | lite-xl-plugin-manager-36da687203b80391d32e43475b9288468bea07c4.tar.gz lite-xl-plugin-manager-36da687203b80391d32e43475b9288468bea07c4.zip |
Remove unceessary checks which are part of the common.get function.
-rw-r--r-- | src/lpm.lua | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lpm.lua b/src/lpm.lua index 38fa954..8e972ae 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -840,7 +840,6 @@ function Addon:install(bottle, installing) local path = temporary_install_path .. (self.organization == 'complex' and self.path and system.stat(self.local_path).type ~= "dir" and (PATHSEP .. "init.lua") or "") common.get(self.url, { target = path, checksum = self.checksum, callback = write_progress_bar }) if VERBOSE then log_action("Downloaded file " .. self.url .. " to " .. path) end - if system.hash(path, "file") ~= self.checksum then fatal_warning("checksum doesn't match for " .. path) end else -- local addon that has a local path local temporary_path = temporary_install_path .. (self.organization == 'complex' and self.path and system.stat(self.local_path).type ~= "dir" and (PATHSEP .. "init.lua") or "") if self.organization == 'complex' and self.path and common.stat(self.local_path).type ~= "dir" then common.mkdirp(temporary_install_path) end @@ -1331,7 +1330,6 @@ function LiteXL:install() log_action("Downloading file " .. file.url .. "...") common.get(file.url, { target = path, checksum = file.checksum, callback = write_progress_bar }) log_action("Downloaded file " .. file.url .. " to " .. path) - if file.checksum ~= "SKIP" and system.hash(path, "file") ~= file.checksum then fatal_warning("checksum doesn't match for " .. path) end if archive then log_action("Extracting file " .. basename .. " in " .. self.local_path) system.extract(path, self.local_path) |