diff options
| author | Jack Nagel | 2012-09-27 17:59:01 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-09-27 17:59:01 -0500 |
| commit | cc932ca6681df313149985066f15a7bed516bc21 (patch) | |
| tree | 89e0aee7a60cce717e3da0b3bf1c1fafcde95c57 /Library | |
| parent | 7e6c274f8129b65763a70d7628af8fac0cf40ad0 (diff) | |
| download | brew-cc932ca6681df313149985066f15a7bed516bc21.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 |
