_Really_ fix hg strategy

Fixes Homebrew/homebrew#15181.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-09-28 09:29:41 -05:00
parent cddc3649a7
commit 0639364a82

View File

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