[Freeipa-devel] [freeipa PR#254][comment] Replace LooseVersion with pkg_resources.parse_version

tiran freeipa-github-notification at redhat.com
Fri Nov 18 10:06:42 UTC 2016


  URL: https://github.com/freeipa/freeipa/pull/254
Title: #254: Replace LooseVersion with pkg_resources.parse_version

tiran commented:
"""
In case you wonder what is going on, LooseVersion is both loose and dumb.

```
>>> ('el7',) < ('el7_2',)
True
```

The legacy version parser parses the version strings differently:
```
(-1, ('00000004', '00000002', '*final-', '00000015', '*el', '00000007', '*final'))
(-1, ('00000004', '00000002', '*final-', '00000015', '*el', '00000007', '*_', '00000002', '00000003', '*final'))
```
"""

See the full comment at https://github.com/freeipa/freeipa/pull/254#issuecomment-261494587


More information about the Freeipa-devel mailing list