2017-08-25 00:03:36 +02:00
|
|
|
References: bsc#1054986
|
|
|
|
|
2020-09-16 19:23:41 +02:00
|
|
|
Index: virt-manager-3.0.0/virtinst/install/urldetect.py
|
2017-08-25 00:03:36 +02:00
|
|
|
===================================================================
|
2020-09-16 19:23:41 +02:00
|
|
|
--- virt-manager-3.0.0.orig/virtinst/install/urldetect.py
|
|
|
|
+++ virt-manager-3.0.0/virtinst/install/urldetect.py
|
|
|
|
@@ -596,6 +596,10 @@ class _SuseDistro(_RHELDistro):
|
2018-10-31 20:34:02 +01:00
|
|
|
if re.search("openSUSE Tumbleweed", self.cache.treeinfo_name):
|
|
|
|
return "opensusetumbleweed"
|
|
|
|
|
|
|
|
+ sp_version = False
|
|
|
|
+ if ' SP' in self.cache.treeinfo_version:
|
|
|
|
+ sp_version = True
|
|
|
|
+ self.cache.treeinfo_version = self.cache.treeinfo_version.replace(' SP', '.')
|
|
|
|
version, update = self.cache.split_version()
|
|
|
|
base = self._variant_prefix + str(version)
|
|
|
|
while update >= 0:
|
2020-09-16 19:23:41 +02:00
|
|
|
@@ -603,7 +607,10 @@ class _SuseDistro(_RHELDistro):
|
2018-10-31 20:34:02 +01:00
|
|
|
# SLE doesn't use '.0' for initial releases in
|
|
|
|
# osinfo-db (sles11, sles12, etc)
|
|
|
|
if update > 0 or not base.startswith('sle'):
|
|
|
|
- tryvar += ".%s" % update
|
|
|
|
+ if sp_version:
|
|
|
|
+ tryvar += "sp%s" % update
|
|
|
|
+ else:
|
|
|
|
+ tryvar += ".%s" % update
|
|
|
|
if OSDB.lookup_os(tryvar):
|
|
|
|
return tryvar
|
|
|
|
update -= 1
|
2020-09-16 19:23:41 +02:00
|
|
|
@@ -617,6 +624,14 @@ class _SuseDistro(_RHELDistro):
|
2019-02-04 19:46:20 +01:00
|
|
|
return var
|
2018-07-17 16:59:44 +02:00
|
|
|
|
|
|
|
|
2019-02-04 19:46:20 +01:00
|
|
|
+class _SLEDistro(_SuseDistro):
|
2018-10-30 23:00:52 +01:00
|
|
|
+ PRETTY_NAME = "SLE"
|
2019-02-04 19:46:20 +01:00
|
|
|
+ matching_distros = ["sle"]
|
2018-10-30 23:00:52 +01:00
|
|
|
+ _variant_prefix = "sle"
|
|
|
|
+ _suse_regex = ["SUSE Linux Enterprise$"]
|
|
|
|
+ famregex = "SUSE Linux Enterprise$"
|
2018-07-17 16:59:44 +02:00
|
|
|
+
|
|
|
|
+
|
2019-02-04 19:46:20 +01:00
|
|
|
class _SLESDistro(_SuseDistro):
|
2018-10-30 23:00:52 +01:00
|
|
|
PRETTY_NAME = "SLES"
|
|
|
|
matching_distros = ["sles"]
|
2020-09-16 19:23:41 +02:00
|
|
|
@@ -883,6 +898,7 @@ def _build_distro_list(osobj):
|
2019-07-29 21:36:33 +02:00
|
|
|
_FedoraDistro,
|
|
|
|
_RHELDistro,
|
|
|
|
_CentOSDistro,
|
|
|
|
+ _SLEDistro,
|
|
|
|
_SLESDistro,
|
|
|
|
_SLEDDistro,
|
|
|
|
_OpensuseDistro,
|