[virt-tools-list] [virt-manager PATCH v2] virtinst: tweak distros in the 'supported' workaround

Pino Toscano ptoscano at redhat.com
Mon Apr 10 15:37:58 UTC 2017


- pick only the latest version for centos6.x, centos7.x, and
  freebsd11.x; the latter two have only one element each currently,
  so this is preparing for future versions
- bump the minimum supported version of Fedora to 24
- enable also mageia >= 5, and centos >= 7.0, since they are supported

Hopefully in the future we can reduce these checks (maybe accepting
directly some families), but for now improve our hacks.
---
 virtinst/osdict.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/virtinst/osdict.py b/virtinst/osdict.py
index 70fad54..7a46801 100644
--- a/virtinst/osdict.py
+++ b/virtinst/osdict.py
@@ -67,6 +67,9 @@ def _remove_older_point_releases(distro_list):
     _find_latest("rhel7")
     _find_latest("freebsd9")
     _find_latest("freebsd10")
+    _find_latest("freebsd11")
+    _find_latest("centos6")
+    _find_latest("centos7")
     return ret
 
 
@@ -370,8 +373,8 @@ class _OsVariant(object):
         # EOL date. So assume None == EOL, add some manual work arounds.
         # We should fix this in a new libosinfo version, and then drop
         # this hack
-        if self._is_related_to(["fedora20", "rhel7.0", "debian6",
-            "ubuntu13.04", "win8", "win2k12"],
+        if self._is_related_to(["fedora24", "rhel7.0", "debian6",
+            "ubuntu13.04", "win8", "win2k12", "mageia5", "centos7.0"],
             check_clones=False, check_derives=False):
             return True
         return False
-- 
2.9.3




More information about the virt-tools-list mailing list