diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index ed2cec904..af12bc185 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -334,6 +334,11 @@ class Formula # If name was a path or mapped to a cached formula if name.include? "/" require name + + # require allows filenames to drop the .rb extension, but everything else + # in our codebase will require an exact and fullpath. + name = "#{name}.rb" unless name =~ /\.rb$/ + path = Pathname.new(name) name = path.stem install_type = :from_path |
