fix printing of unexpected bin/lib files

This commit is contained in:
Adam Vandenberg 2013-08-05 13:31:35 -07:00
parent 008476940f
commit 5f6b10f39a

View File

@ -49,9 +49,9 @@ module FormulaCellarChecks
Installing JARs to "lib" can cause conflicts between packages. Installing JARs to "lib" can cause conflicts between packages.
For Java software, it is typically better for the formula to For Java software, it is typically better for the formula to
install to "libexec" and then symlink or wrap binaries into "bin". install to "libexec" and then symlink or wrap binaries into "bin".
"See "activemq", "jruby", etc. for examples." See "activemq", "jruby", etc. for examples.
"The offending files are:" The offending files are:
#{jars} #{jars * "\n"}
EOS EOS
] ]
end end
@ -71,7 +71,7 @@ module FormulaCellarChecks
<<-EOS.undent <<-EOS.undent
Installing non-libraries to "lib" is bad practice. Installing non-libraries to "lib" is bad practice.
The offending files are: The offending files are:
#{non_libraries} #{non_libraries * "\n"}
EOS EOS
] ]
end end
@ -85,7 +85,7 @@ module FormulaCellarChecks
["Non-executables were installed to \"#{bin}\".", ["Non-executables were installed to \"#{bin}\".",
<<-EOS.undent <<-EOS.undent
The offending files are: The offending files are:
#{non_exes} #{non_exes * "\n"}
EOS EOS
] ]
end end