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
-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to