Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/omnibus/fetchers/net_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down Expand Up @@ -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

Expand Down