diff options
| author | Jack Nagel | 2012-09-27 17:59:01 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-09-27 17:59:01 -0500 |
| commit | fd5be35f1e7f68929185ff76d3b1cf974c881a0f (patch) | |
| tree | a81f2719b7412659b6ef6c262640c005a532efc3 /Library | |
| parent | 4b79622dd26d0a607d95eb3be562ab2d8bcf55fb (diff) | |
| download | homebrew-fd5be35f1e7f68929185ff76d3b1cf974c881a0f.tar.bz2 | |
Fix hg strategy under stdenv
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 99897ff84..d5db8bc6e 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -459,11 +459,7 @@ class MercurialDownloadStrategy < AbstractDownloadStrategy def cached_location; @clone; end def hgpath - @path ||= if which "hg" - 'hg' - else - "#{HOMEBREW_PREFIX}/bin/hg" - end + @path ||= (which "hg" || "#{HOMEBREW_PREFIX}/bin/hg") end def fetch |
