keg_relocate: don't match "text" in filenames.

This commit is contained in:
Mike McQuaid 2015-07-20 08:33:05 +01:00
parent 842c0227bc
commit 5db82b46b1

View File

@ -163,7 +163,7 @@ class Keg
path.find do |pn|
next if pn.symlink? or pn.directory?
next if Metafiles::EXTENSIONS.include? pn.extname
text_files << pn if Utils.popen_read("/usr/bin/file", pn).include?("text")
text_files << pn if Utils.popen_read("/usr/bin/file", "--brief", pn).include?("text")
end
text_files