References: bsc#1192238, jsc#SLE-17764 Index: virt-manager-3.3.0/virtinst/install/urldetect.py =================================================================== --- virt-manager-3.3.0.orig/virtinst/install/urldetect.py +++ virt-manager-3.3.0/virtinst/install/urldetect.py @@ -724,6 +724,26 @@ class _OESDistro(_SuseDistro): famregex = ".*Open Enterprise Server.*" +class _OLDistro(_DistroTree): + PRETTY_NAME = "Oracle Linux" + matching_distros = ["ol"] + _variant_prefix = "ol" + + @classmethod + def is_valid(cls, cache): + famregex = ".*Oracle Linux.*" + if cache.treeinfo_family_regex(famregex): + return True + + def _detect_version(self): + if self.cache.treeinfo_version: # pragma: no cover + version, update = self.cache.split_version() + # Beginning with oracle 8 they add an extra '.0' which we ignore + olname = self._variant_prefix + str(version) + "." + str(update) + if OSDB.lookup_os(olname): + return olname + + class _DebianDistro(_DistroTree): # ex. http://ftp.egr.msu.edu/debian/dists/sarge/main/installer-i386/ # daily builds: https://d-i.debian.org/daily-images/amd64/ @@ -950,6 +970,7 @@ def _build_distro_list(osobj): _FedoraDistro, _RHELDistro, _CentOSDistro, + _OLDistro, _SLEDistro, _SLESDistro, _SLEHPCDistro,