diff options
| author | Uladzislau Shablinski | 2016-12-26 20:16:04 +0300 | 
|---|---|---|
| committer | Uladzislau Shablinski | 2016-12-26 20:16:04 +0300 | 
| commit | d09153763624096d6a300f02ce395f03967d01af (patch) | |
| tree | 02b2760439423c1eb0b2fa84d6a250f07b28962d /Library/Homebrew/formulary.rb | |
| parent | 755be9a2ee0f9670a1b47a2c99b0c936eb07d2cf (diff) | |
| download | brew-d09153763624096d6a300f02ce395f03967d01af.tar.bz2 | |
Don't drop .rb suffix for formula names
Fixes #1718
Diffstat (limited to 'Library/Homebrew/formulary.rb')
| -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 6ed5b91ba..7e8811c9a 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?  | 
