23 lines
1.2 KiB
Diff
23 lines
1.2 KiB
Diff
Index: virt-manager-5.1.0/virtinst/install/urldetect.py
|
|
===================================================================
|
|
--- virt-manager-5.1.0.orig/virtinst/install/urldetect.py
|
|
+++ virt-manager-5.1.0/virtinst/install/urldetect.py
|
|
@@ -276,9 +276,15 @@ class _SUSEContent:
|
|
distro_version = distro_version.strip()
|
|
|
|
if "Enterprise" in self.product_name or "SLES" in self.product_name:
|
|
- sle_version = self.product_name.strip().rsplit(" ")[4]
|
|
+ if " SAP " in self.product_name:
|
|
+ sle_version = self.product_name.strip().rsplit(' ')[7]
|
|
+ else:
|
|
+ sle_version = self.product_name.strip().rsplit(' ')[4]
|
|
if len(self.product_name.strip().rsplit(" ")) > 5:
|
|
- sle_version = sle_version + "." + self.product_name.strip().rsplit(" ")[5][2]
|
|
+ if " SAP " in self.product_name:
|
|
+ sle_version = (sle_version + '.' + self.product_name.strip().rsplit(' ')[8][2])
|
|
+ else:
|
|
+ sle_version = (sle_version + '.' + self.product_name.strip().rsplit(' ')[5][2])
|
|
distro_version = sle_version
|
|
|
|
# SUSE Container as a Service Platform
|