aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorsamueljohn2012-06-15 11:53:05 +0200
committerMisty De Meo2012-06-15 09:28:04 -0500
commitf9b2761d7722c0e6eed91a04135f10c9ef908fdc (patch)
treedf4d35ceee9af274213595540e88ea6fce390b96 /Library
parentffe21a9cd143353b3b42f278a48539480eda5a00 (diff)
downloadbrew-f9b2761d7722c0e6eed91a04135f10c9ef908fdc.tar.bz2
warn if unrar is needed but not found.
You can `brew unrar` Closes Homebrew/homebrew#12858. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 7d5e7af68..a509d098e 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -87,6 +87,7 @@ class CurlDownloadStrategy < AbstractDownloadStrategy
safe_system '/usr/sbin/pkgutil', '--expand', @tarball_path, File.basename(@url)
chdir
when :rar
+ raise "You must install unrar: brew install unrar" unless which "unrar"
quiet_safe_system 'unrar', 'x', {:quiet_flag => '-inul'}, @tarball_path
else
# we are assuming it is not an archive, use original filename