aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/requirements/python_dependency.rb
diff options
context:
space:
mode:
authorJack Nagel2013-06-05 21:52:48 -0500
committerJack Nagel2013-06-05 22:03:58 -0500
commit3f3c5ae97676d9d5d6723fa1e4a851937b904da6 (patch)
tree6a3bb13751325b178aa7945c2a445c76868e041f /Library/Homebrew/requirements/python_dependency.rb
parentb3006c03e2e1ea0a257d49758df6692a00b15763 (diff)
downloadhomebrew-3f3c5ae97676d9d5d6723fa1e4a851937b904da6.tar.bz2
Improve tokenization of version strings
Tokens like "b4", "beta1", "p195", &c. are now treated as atoms rather than being broken down even further. Additionally, we enable support for padding in the middle of versions strings, so we can successfully compare something like "2.1-p195" with "2.1.0-p194" by inferring that "2.1" is really "2.1.0". This fixes the comparison "9.9.3-P1" > "9.9.3" which previously has not been handled correctly.
Diffstat (limited to 'Library/Homebrew/requirements/python_dependency.rb')
0 files changed, 0 insertions, 0 deletions