Add support for rar archives.
This commit is contained in:
parent
8ce7abce73
commit
0b56c62bf5
@ -73,6 +73,8 @@ class CurlDownloadStrategy <AbstractDownloadStrategy
|
|||||||
# TODO check if it's really a tar archive
|
# TODO check if it's really a tar archive
|
||||||
safe_system '/usr/bin/tar', 'xf', @tarball_path
|
safe_system '/usr/bin/tar', 'xf', @tarball_path
|
||||||
chdir
|
chdir
|
||||||
|
when 'Rar!'
|
||||||
|
quiet_safe_system 'unrar', 'x', {:quiet_flag => '-inul'}, @tarball_path
|
||||||
else
|
else
|
||||||
# we are assuming it is not an archive, use original filename
|
# we are assuming it is not an archive, use original filename
|
||||||
# this behaviour is due to ScriptFileFormula expectations
|
# this behaviour is due to ScriptFileFormula expectations
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user