From 05a2261877c09a381fdae52e28dee853d4aa0930 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 10 Oct 2013 10:31:08 -0500 Subject: MercurialDownloadStrategy: avoid creating Formula object just for opt_prefix --- Library/Homebrew/download_strategy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 7ce7bc626..545791035 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -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 -- cgit v1.2.3