virt-manager/virtinst-fix-sle12sp1-detection.patch
Charles Arnold 39879bbe9c - bsc#964407 - Virt-Manager: Installer wrongly detects SLE-12-GA
media as SLE-12-SP1
  virtinst-fix-sle12sp1-detection.patch
- Fix Tumbleweed detection
  virtinst-fix-tumbleweed-detection.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=298
2016-02-02 22:30:40 +00:00

17 lines
937 B
Diff

Index: virt-manager-1.3.2/virtinst/urlfetcher.py
===================================================================
--- virt-manager-1.3.2.orig/virtinst/urlfetcher.py
+++ virt-manager-1.3.2/virtinst/urlfetcher.py
@@ -441,7 +441,10 @@ def _distroFromSUSEContent(fetcher, arch
re.match(".*SUSE SLES*", distribution[1]):
dclass = SLESDistro
if distro_version is None:
- distro_version = ['VERSION', distribution[1].strip().rsplit(' ')[4]]
+ sles_version = distribution[1].strip().rsplit(' ')[4]
+ if len(distribution[1].strip().rsplit(' ')) > 5:
+ sles_version = sles_version + '.' + distribution[1].strip().rsplit(' ')[5][2]
+ distro_version = ['VERSION', sles_version]
elif re.match(".*SUSE Linux Enterprise Desktop*", distribution[1]):
dclass = SLEDDistro
if distro_version is None: