text_files: Skip the formula in .brew/formula.rb

This commit is contained in:
Shaun Jackman 2017-10-01 09:52:29 -07:00
parent e86c79fbc0
commit 03ae6aae3b

View File

@ -124,6 +124,7 @@ class Keg
next true if pn.symlink? next true if pn.symlink?
next true if pn.directory? next true if pn.directory?
next false if pn.basename.to_s == "orig-prefix.txt" # for python virtualenvs next false if pn.basename.to_s == "orig-prefix.txt" # for python virtualenvs
next true if pn == self/".brew/#{name}.rb"
next true if Metafiles::EXTENSIONS.include?(pn.extname) next true if Metafiles::EXTENSIONS.include?(pn.extname)
if pn.text_executable? if pn.text_executable?
text_files << pn text_files << pn