aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/install.rb
diff options
context:
space:
mode:
authorJack Nagel2014-02-28 16:51:15 -0600
committerJack Nagel2014-02-28 16:51:15 -0600
commit7700b710eba54de2ab266bd599e1d54fe0330564 (patch)
tree1a1ac94337ebfbf58049f5c3d31d2d3937c4d511 /Library/Homebrew/cmd/install.rb
parent15294493e2f94f233f738a4c6d772610d00edaa3 (diff)
downloadhomebrew-7700b710eba54de2ab266bd599e1d54fe0330564.tar.bz2
Use Formula.path
Diffstat (limited to 'Library/Homebrew/cmd/install.rb')
-rw-r--r--Library/Homebrew/cmd/install.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb
index 4e1705c74..cd3c3c8d2 100644
--- a/Library/Homebrew/cmd/install.rb
+++ b/Library/Homebrew/cmd/install.rb
@@ -25,7 +25,7 @@ module Homebrew extend self
ARGV.named.each do |name|
# if a formula has been tapped ignore the blacklisting
- if not File.file? HOMEBREW_REPOSITORY/"Library/Formula/#{name}.rb"
+ unless Formula.path(name).file?
msg = blacklisted? name
raise "No available formula for #{name}\n#{msg}" if msg
end