aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2015-01-08 14:39:48 -0500
committerJack Nagel2015-01-08 14:39:48 -0500
commitb28c00581daabe8ed2738da144eb2e305dc18f90 (patch)
tree4f47a005ec00e32375e63f3d7b5c5d3530b2bd30 /Library
parentf5ca866db27bcba8b8322456b3ad1814ec555072 (diff)
downloadhomebrew-b28c00581daabe8ed2738da144eb2e305dc18f90.tar.bz2
Allow java dependency to accept normal dependency tags
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/requirements.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/requirements.rb b/Library/Homebrew/requirements.rb
index fb3df9384..d1c79f763 100644
--- a/Library/Homebrew/requirements.rb
+++ b/Library/Homebrew/requirements.rb
@@ -119,7 +119,7 @@ class JavaDependency < Requirement
satisfy { java_version }
def initialize(tags)
- @version = tags.pop
+ @version = tags.shift if /(\d\.)+\d/ === tags.first
super
end