Add support for detecting SUSE Linux Micro 6.0 and newer. See also the osinfo-db package for the description file. Note that starting with Micro version 6.0, the word "Enterprise" was temporarily dropped from the Micro version name, then added back as the official name upon release but the ISO media does not have the word Enterprise. Index: virt-manager-4.1.0/virtinst/install/urldetect.py =================================================================== --- virt-manager-4.1.0.orig/virtinst/install/urldetect.py +++ virt-manager-4.1.0/virtinst/install/urldetect.py @@ -271,13 +271,16 @@ class _SUSEContent(object): ",", 1)[0].strip().rsplit(":")[4] distro_version = distro_version.strip() - if "Enterprise" in self.product_name or "SLES" in self.product_name: + if "Enterprise" in self.product_name or "SLES" in self.product_name or "Micro" in self.product_name: if " SAP " in self.product_name: sle_version = self.product_name.strip().rsplit(' ')[7] if " High Performance " in self.product_name: sle_version = self.product_name.strip().rsplit(' ')[6] else: - sle_version = self.product_name.strip().rsplit(' ')[4] + if "SUSE Linux Micro" in self.product_name: + sle_version = self.product_name.strip().rsplit(' ')[3] + else: + sle_version = self.product_name.strip().rsplit(' ')[4] if len(self.product_name.strip().rsplit(' ')) > 5 and not " Micro " in self.product_name: if " SAP " in self.product_name: sle_version = (sle_version + '.' + @@ -704,7 +707,7 @@ class _MICRODistro(_SuseDistro): PRETTY_NAME = "SLES" matching_distros = ["slem"] _variant_prefix = "slem" - _suse_regex = [".*SUSE Linux Enterprise Micro*", ".*SUSE Micro*"] + _suse_regex = [".*SUSE Linux Enterprise Micro*", ".*SUSE Linux Micro*", ".*SUSE Micro*"] famregex = ".*SUSE Linux Enterprise Micro.*"