Skip to content
Snippets Groups Projects
Commit 0b56c62b authored by Adam Vandenberg's avatar Adam Vandenberg
Browse files

Add support for rar archives.

parent 8ce7abce
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,8 @@ class CurlDownloadStrategy <AbstractDownloadStrategy
# TODO check if it's really a tar archive
safe_system '/usr/bin/tar', 'xf', @tarball_path
chdir
when 'Rar!'
quiet_safe_system 'unrar', 'x', {:quiet_flag => '-inul'}, @tarball_path
else
# we are assuming it is not an archive, use original filename
# this behaviour is due to ScriptFileFormula expectations
......
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