aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2010-08-21 14:11:55 -0700
committerAdam Vandenberg2010-08-21 14:12:10 -0700
commitae8b24c04fb927f721aaa9cb9724e7a752feaec4 (patch)
tree5dcbe55f1f0707743cc239e2e36a2ded91109d12
parenta84f40bf3e0c09b2a85d3a6b7bcddd33961b2857 (diff)
downloadhomebrew-ae8b24c04fb927f721aaa9cb9724e7a752feaec4.tar.bz2
Only check for Jars if lib exists.
-rwxr-xr-xLibrary/Homebrew/install.rb14
1 files changed, 8 insertions, 6 deletions
diff --git a/Library/Homebrew/install.rb b/Library/Homebrew/install.rb
index d4b42fe93..91d1f0861 100755
--- a/Library/Homebrew/install.rb
+++ b/Library/Homebrew/install.rb
@@ -158,12 +158,14 @@ def install f
end
# Check for Jars in lib
- unless f.lib.children.select{|g| g.to_s =~ /\.jar$/}.empty?
- opoo 'JARs where installed to "lib".'
- puts "Installing JARs to \"lib\" can cause conflicts between packages."
- puts "For Java software, it is typically better for the formula to"
- puts "install to \"libexec\" and then symlink or wrap binaries into \"bin\"."
- puts "See \"activemq\", \"jruby\", etc. for examples."
+ if File.exist?(f.lib)
+ unless f.lib.children.select{|g| g.to_s =~ /\.jar$/}.empty?
+ opoo 'JARs were installed to "lib".'
+ puts "Installing JARs to \"lib\" can cause conflicts between packages."
+ puts "For Java software, it is typically better for the formula to"
+ puts "install to \"libexec\" and then symlink or wrap binaries into \"bin\"."
+ puts "See \"activemq\", \"jruby\", etc. for examples."
+ end
end
# link from Cellar to Prefix