From cc932ca6681df313149985066f15a7bed516bc21 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 27 Sep 2012 17:59:01 -0500 Subject: [PATCH] Fix hg strategy under stdenv Signed-off-by: Jack Nagel --- Library/Homebrew/download_strategy.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 99897ff846..d5db8bc6e9 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