Skip to content
Snippets Groups Projects
Unverified Commit f28e5106 authored by Zhiming Wang's avatar Zhiming Wang
Browse files

download_strategy: silence unzip and unrar

We silenced tar in 5e3a26bf. It makes sense to make unzip and unrar
output comparably succinct.
parent 7e933400
No related branches found
No related tags found
No related merge requests found
......@@ -224,7 +224,7 @@ class AbstractFileDownloadStrategy < AbstractDownloadStrategy
def stage
case cached_location.compression_type
when :zip
with_system_path { quiet_safe_system "unzip", { quiet_flag: "-qq" }, cached_location }
with_system_path { quiet_safe_system "unzip", "-qq", cached_location }
chdir
when :gzip_only
with_system_path { buffered_write("gunzip") }
......@@ -252,7 +252,7 @@ class AbstractFileDownloadStrategy < AbstractDownloadStrategy
when :xar
safe_system "/usr/bin/xar", "-xf", cached_location
when :rar
quiet_safe_system "unrar", "x", { quiet_flag: "-inul" }, cached_location
quiet_safe_system "unrar", "x", "-inul", cached_location
when :p7zip
safe_system "7zr", "x", cached_location
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment