aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-10-10 10:31:08 -0500
committerJack Nagel2013-10-10 10:31:08 -0500
commite39703be8ee4df3f55a9e583cd62439297063eed (patch)
tree7d053509f9a778c0e7754a1d1e9b6a7c1081e557 /Library
parent48d0ad492924d0bd6f2764634671c75c8e30ea4a (diff)
downloadhomebrew-e39703be8ee4df3f55a9e583cd62439297063eed.tar.bz2
MercurialDownloadStrategy: avoid creating Formula object just for opt_prefix
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb2
1 files changed, 1 insertions, 1 deletions
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