aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/download_strategy.rb
diff options
context:
space:
mode:
authorJack Nagel2013-10-10 10:31:08 -0500
committerJack Nagel2013-10-10 10:31:08 -0500
commit05a2261877c09a381fdae52e28dee853d4aa0930 (patch)
tree5f447ce56a2a7a338a8b747959fb905e4e4ce0cb /Library/Homebrew/download_strategy.rb
parent4a2fc89c4699f3c5e4ad93f9d7c26698c4a0c989 (diff)
downloadbrew-05a2261877c09a381fdae52e28dee853d4aa0930.tar.bz2
MercurialDownloadStrategy: avoid creating Formula object just for opt_prefix
Diffstat (limited to 'Library/Homebrew/download_strategy.rb')
-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