Merge pull request #1129 from zmwangx/tar-no-verbose
download_strategy: never verbosely untar
This commit is contained in:
commit
e5274c0d81
@ -231,8 +231,7 @@ class AbstractFileDownloadStrategy < AbstractDownloadStrategy
|
|||||||
when :bzip2_only
|
when :bzip2_only
|
||||||
with_system_path { buffered_write("bunzip2") }
|
with_system_path { buffered_write("bunzip2") }
|
||||||
when :gzip, :bzip2, :compress, :tar
|
when :gzip, :bzip2, :compress, :tar
|
||||||
# Assume these are also tarred
|
tar_flags = "x"
|
||||||
tar_flags = ARGV.verbose? && ENV["TRAVIS"].nil? ? "xv" : "x"
|
|
||||||
# Older versions of tar require an explicit format flag
|
# Older versions of tar require an explicit format flag
|
||||||
if cached_location.compression_type == :gzip
|
if cached_location.compression_type == :gzip
|
||||||
tar_flags << "z"
|
tar_flags << "z"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user