MercurialDownloadStrategy: avoid creating Formula object just for opt_prefix
This commit is contained in:
parent
4a2fc89c46
commit
05a2261877
@ -634,7 +634,7 @@ class MercurialDownloadStrategy < VCSDownloadStrategy
|
||||
@path ||= %W[
|
||||
#{which("hg")}
|
||||
#{HOMEBREW_PREFIX}/bin/hg
|
||||
#{Formula.factory('mercurial').opt_prefix}/bin/hg
|
||||
#{HOMEBREW_PREFIX}/opt/mercurial/bin/hg
|
||||
#{HOMEBREW_PREFIX}/share/python/hg
|
||||
].find { |p| File.executable? p }
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user