2016-02-02 23:30:40 +01:00
|
|
|
References: bsc#964407
|
|
|
|
Problem in the SUSE specific parsing code due to the non-standard way of
|
|
|
|
defining the media in the SUSE content file.
|
|
|
|
While we are here, also fix tumbleweed detection. You need an updated libosinfo
|
|
|
|
that contains a definition for tumbleweed.
|
|
|
|
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
|
2016-05-09 17:46:59 +02:00
|
|
|
@@ -464,9 +464,6 @@ def _distroFromSUSEContent(fetcher, arch
|
2016-02-02 23:30:40 +01:00
|
|
|
dclass = OpensuseDistro
|
|
|
|
if distro_version is None:
|
|
|
|
distro_version = ['VERSION', distribution[0].strip().rsplit(':')[4]]
|
|
|
|
- # For tumbleweed we only have an 8 character date string so default to 13.2
|
|
|
|
- if distro_version[1] and len(distro_version[1]) == 8:
|
|
|
|
- distro_version = ['VERSION', '13.2']
|
|
|
|
|
|
|
|
if distro_version is None:
|
|
|
|
return None
|
2016-05-09 17:46:59 +02:00
|
|
|
@@ -1018,7 +1015,11 @@ class SuseDistro(Distro):
|
2016-02-02 23:30:40 +01:00
|
|
|
if sp_version:
|
|
|
|
self.os_variant += sp_version
|
|
|
|
else:
|
|
|
|
- self.os_variant += distro_version
|
|
|
|
+ # Tumbleweed 8 digit date
|
|
|
|
+ if len(version) == 8:
|
2016-06-09 23:54:40 +02:00
|
|
|
+ self.os_variant += "tumbleweed"
|
2016-02-02 23:30:40 +01:00
|
|
|
+ else:
|
|
|
|
+ self.os_variant += distro_version
|
|
|
|
else:
|
|
|
|
self.os_variant += "9"
|
|
|
|
|