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>
This commit is contained in:
parent
ffe21a9cd1
commit
f9b2761d77
@ -87,6 +87,7 @@ class CurlDownloadStrategy < AbstractDownloadStrategy
|
|||||||
safe_system '/usr/sbin/pkgutil', '--expand', @tarball_path, File.basename(@url)
|
safe_system '/usr/sbin/pkgutil', '--expand', @tarball_path, File.basename(@url)
|
||||||
chdir
|
chdir
|
||||||
when :rar
|
when :rar
|
||||||
|
raise "You must install unrar: brew install unrar" unless which "unrar"
|
||||||
quiet_safe_system 'unrar', 'x', {:quiet_flag => '-inul'}, @tarball_path
|
quiet_safe_system 'unrar', 'x', {:quiet_flag => '-inul'}, @tarball_path
|
||||||
else
|
else
|
||||||
# we are assuming it is not an archive, use original filename
|
# we are assuming it is not an archive, use original filename
|
||||||
|
Loading…
x
Reference in New Issue
Block a user