From f9b2761d7722c0e6eed91a04135f10c9ef908fdc Mon Sep 17 00:00:00 2001 From: samueljohn Date: Fri, 15 Jun 2012 11:53:05 +0200 Subject: [PATCH] warn if unrar is needed but not found. You can `brew unrar` Closes Homebrew/homebrew#12858. Signed-off-by: Misty De Meo --- Library/Homebrew/download_strategy.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 7d5e7af681..a509d098ef 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