diff options
| author | Mike McQuaid | 2016-12-29 12:32:12 +0000 |
|---|---|---|
| committer | GitHub | 2016-12-29 12:32:12 +0000 |
| commit | 85f62afae69395457faed7a17c49a8c74484a861 (patch) | |
| tree | 9ed9f112f07be210a2d5736b995b521ed017139d /Library | |
| parent | d7d5581b19f6dac7994ef351639e116e0ce3c222 (diff) | |
| parent | d09153763624096d6a300f02ce395f03967d01af (diff) | |
| download | brew-85f62afae69395457faed7a17c49a8c74484a861.tar.bz2 | |
Merge pull request #1733 from vladshablinsky/rb_in_name
Don't drop .rb suffix for formula names
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formulary.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb index 90e0dc2d4..40370cec3 100644 --- a/Library/Homebrew/formulary.rb +++ b/Library/Homebrew/formulary.rb @@ -333,7 +333,9 @@ class Formulary return TapLoader.new(ref, from: from) end - return FromPathLoader.new(ref) if File.extname(ref) == ".rb" + if File.extname(ref) == ".rb" && Pathname.new(ref).expand_path.exist? + return FromPathLoader.new(ref) + end formula_with_that_name = core_path(ref) if formula_with_that_name.file? |
