urldetect: Fix rhel8 detection

Internally rhel8 versions are now 8.0.0, so adjust our version check
This commit is contained in:
Cole Robinson 2019-01-30 16:30:22 -05:00
parent 665607fdc2
commit b4cddb338b
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ class _DistroCache(object):
# centos altarch's have just version=7
update = 0
version = _safeint(verstr)
if verstr.count(".") == 1:
if verstr.count(".") >= 1:
version = _safeint(verstr.split(".")[0])
update = _safeint(verstr.split(".")[1])