mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-06 18:35:18 +00:00
revisioned (-r2 in 2.29-r2) versions brake comparator no more
This commit is contained in:
parent
23fda458fd
commit
da439272bd
@ -1075,7 +1075,7 @@ def version_cmp(pkg1, pkg2, **kwargs):
|
||||
if kwargs:
|
||||
salt.utils.invalid_kwargs(kwargs)
|
||||
|
||||
regex = r'^(?:~|-|\*)?([^:\[\~\-\*]+):?[^\[]*\[?.*$'
|
||||
regex = r'^(?:~|-|\*)?([^:\[\~\*]+):?[^\[]*\[?.*$'
|
||||
ver1 = re.match(regex, pkg1)
|
||||
ver2 = re.match(regex, pkg2)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user