Fix hg strategy under stdenv
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
7e6c274f81
commit
cc932ca668
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user