allow installation of formulae from the current folder

Closes Homebrew/homebrew#19177.
This commit is contained in:
Adam Vandenberg 2013-06-30 16:43:28 -07:00
parent 9fdfdc5680
commit 5db5740cc2

View File

@ -166,8 +166,9 @@ class Formulary
elsif name_or_path.include? "/"
# If name was a path or mapped to a cached formula
f = FromPathLoader.new(name_or_path)
elsif name_or_path =~ /\.rb$/
f = FromPathLoader.new("./#{name_or_path}")
else
# For names, map to the path and then require
f = StandardLoader.new(name_or_path)
end
end