From 36da687203b80391d32e43475b9288468bea07c4 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Fri, 8 Mar 2024 13:13:19 -0500 Subject: Remove unceessary checks which are part of the common.get function. --- src/lpm.lua | 2 -- 1 file changed, 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) -- cgit v1.2.3