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
commit26785dbe5ddaee3f71d64d4a9f8b92274ec3a366 (patch)
tree9a64c811717d00b5b3fdf05629f4b6b96c355ee2 /Library/Homebrew/cmd/install.rb
parent2d50501c4e97849f5fa265a0bbe4e1846904854e (diff)
downloadbrew-26785dbe5ddaee3f71d64d4a9f8b92274ec3a366.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