diff options
Diffstat (limited to 'Library/Homebrew/metafiles.rb')
| -rw-r--r-- | Library/Homebrew/metafiles.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Library/Homebrew/metafiles.rb b/Library/Homebrew/metafiles.rb index ffa2036f2..37e646bb5 100644 --- a/Library/Homebrew/metafiles.rb +++ b/Library/Homebrew/metafiles.rb @@ -5,18 +5,12 @@ class Metafiles news notes notice readme todo ] - def should_copy? file - include? file - end - def should_list? file return false if %w[.DS_Store INSTALL_RECEIPT.json].include? file - not include? file + !copy?(file) end - private - - def include?(path) + def should_copy?(path) path = path.to_s.downcase ext = File.extname(path) |
