From b4cddb338b29aa2b63ff85a547427ad320dd6661 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Wed, 30 Jan 2019 16:30:22 -0500 Subject: [PATCH] urldetect: Fix rhel8 detection Internally rhel8 versions are now 8.0.0, so adjust our version check --- virtinst/urldetect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtinst/urldetect.py b/virtinst/urldetect.py index 16b3f372..216829a6 100644 --- a/virtinst/urldetect.py +++ b/virtinst/urldetect.py @@ -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])