aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-03-25 23:59:35 -0700
committerAdam Vandenberg2010-03-31 12:10:08 -0700
commit4a74d94f01257bc0f4f7f1990f422ef0df9160e5 (patch)
treea7a23ed0334b2d27f83c9fd2b51f36df6e9c6b41 /Library
parent721c5f0d733071cc66641ad3866d23ebfdb6d771 (diff)
downloadhomebrew-4a74d94f01257bc0f4f7f1990f422ef0df9160e5.tar.bz2
Add support for rar archives.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index a94be48b3..0305bf944 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -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