Fix hg strategy under stdenv

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-09-27 17:59:01 -05:00
parent 7e6c274f81
commit cc932ca668

View File

@ -459,11 +459,7 @@ class MercurialDownloadStrategy < AbstractDownloadStrategy
def cached_location; @clone; end def cached_location; @clone; end
def hgpath def hgpath
@path ||= if which "hg" @path ||= (which "hg" || "#{HOMEBREW_PREFIX}/bin/hg")
'hg'
else
"#{HOMEBREW_PREFIX}/bin/hg"
end
end end
def fetch def fetch