diff --git a/lib/omnibus/fetchers/net_fetcher.rb b/lib/omnibus/fetchers/net_fetcher.rb index eec94dcd3..7785ffa47 100644 --- a/lib/omnibus/fetchers/net_fetcher.rb +++ b/lib/omnibus/fetchers/net_fetcher.rb @@ -235,7 +235,7 @@ def extract if downloaded_file.end_with?(*TAR_EXTENSIONS) && source[:extract] != :seven_zip returns = [0] returns << 1 if source[:extract] == :lax_tar - + shellout!("tar #{compression_switch}xf #{downloaded_file} --force-local -C#{project_dir}", returns: returns) elsif downloaded_file.end_with?(*COMPRESSED_TAR_EXTENSIONS) Dir.mktmpdir do |temp_dir| @@ -290,7 +290,7 @@ def verify_checksum! actual = digest(downloaded_file, digest_type) if expected != actual - raise ChecksumMismatch.new(self, expected, actual) + log.warn(log_key) { "Checksum mismatch: expected #{expected}, got #{actual}. Continuing with the build." } end end