urldetect: Fix rhel8 detection
Internally rhel8 versions are now 8.0.0, so adjust our version check
This commit is contained in:
parent
665607fdc2
commit
b4cddb338b
|
@ -128,7 +128,7 @@ class _DistroCache(object):
|
||||||
# centos altarch's have just version=7
|
# centos altarch's have just version=7
|
||||||
update = 0
|
update = 0
|
||||||
version = _safeint(verstr)
|
version = _safeint(verstr)
|
||||||
if verstr.count(".") == 1:
|
if verstr.count(".") >= 1:
|
||||||
version = _safeint(verstr.split(".")[0])
|
version = _safeint(verstr.split(".")[0])
|
||||||
update = _safeint(verstr.split(".")[1])
|
update = _safeint(verstr.split(".")[1])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue