diff options
| author | Adam Vandenberg | 2010-03-25 23:59:35 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-03-31 12:10:08 -0700 |
| commit | 0b56c62bf50c1291f0259aa2ea9ff86afe826c0b (patch) | |
| tree | 32c09cdfbfbd504499b019e42b622f292be527ab /Library | |
| parent | 8ce7abce7311d443772b518b9699e06e7938dfa0 (diff) | |
| download | brew-0b56c62bf50c1291f0259aa2ea9ff86afe826c0b.tar.bz2 | |
Add support for rar archives.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 2 |
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 |
