aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-08-21 14:11:55 -0700
committerAdam Vandenberg2010-08-21 14:12:10 -0700
commit1146eec3bfc41aa8719711cc73a2f3357c154803 (patch)
tree1bf192f4a7269e5236b9bd0fb59b9d78f368fcc3 /Library
parent4b198a6664e40474a56f6c952fbdd25170b5cdd5 (diff)
downloadbrew-1146eec3bfc41aa8719711cc73a2f3357c154803.tar.bz2
Only check for Jars if lib exists.
Diffstat (limited to 'Library')
-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