diff options
| author | Baptiste Fontaine | 2015-01-30 10:20:49 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-01 09:31:01 +0100 |
| commit | 7d066e59ba069efab1a33c840fa1a4ecb9c2da3a (patch) | |
| tree | 8b6a99f8f3daccb73c8dcef09b0a28c45475f899 /Library | |
| parent | cd6a089abf3c4abd40993d06a441db139a22c9ac (diff) | |
| download | homebrew-7d066e59ba069efab1a33c840fa1a4ecb9c2da3a.tar.bz2 | |
JavaDependency: ignore trailing + in the version
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/requirements.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/requirements.rb b/Library/Homebrew/requirements.rb index 6b72d9804..6a4b4e87a 100644 --- a/Library/Homebrew/requirements.rb +++ b/Library/Homebrew/requirements.rb @@ -126,7 +126,8 @@ class JavaDependency < Requirement satisfy { java_version } def initialize(tags) - @version = tags.shift if /(\d\.)+\d/ === tags.first + # ignore trailing + + @version = tags.shift.sub(/\+$/, "") if /(\d\.)+\d/ === tags.first super end |
