Merge pull request #1174 from zmwangx/silence-unzip-and-unrar
download_strategy: silence unzip and unrar
This commit is contained in:
commit
c1533e0ba4
@ -224,7 +224,7 @@ class AbstractFileDownloadStrategy < AbstractDownloadStrategy
|
|||||||
def stage
|
def stage
|
||||||
case cached_location.compression_type
|
case cached_location.compression_type
|
||||||
when :zip
|
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
|
chdir
|
||||||
when :gzip_only
|
when :gzip_only
|
||||||
with_system_path { buffered_write("gunzip") }
|
with_system_path { buffered_write("gunzip") }
|
||||||
@ -252,7 +252,7 @@ class AbstractFileDownloadStrategy < AbstractDownloadStrategy
|
|||||||
when :xar
|
when :xar
|
||||||
safe_system "/usr/bin/xar", "-xf", cached_location
|
safe_system "/usr/bin/xar", "-xf", cached_location
|
||||||
when :rar
|
when :rar
|
||||||
quiet_safe_system "unrar", "x", { quiet_flag: "-inul" }, cached_location
|
quiet_safe_system "unrar", "x", "-inul", cached_location
|
||||||
when :p7zip
|
when :p7zip
|
||||||
safe_system "7zr", "x", cached_location
|
safe_system "7zr", "x", cached_location
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user