virt-manager/virtinst-handle-tumbleweed-treeinfo-file.patch

20 lines
905 B
Diff

References: bsc#1091113
In Tumbleweed the .treeinfo file has no version as it is mostly meaningless.
Index: virt-manager-1.5.1/virtinst/urlfetcher.py
===================================================================
--- virt-manager-1.5.1.orig/virtinst/urlfetcher.py
+++ virt-manager-1.5.1/virtinst/urlfetcher.py
@@ -1138,7 +1138,10 @@ class SuseDistro(Distro):
"Open Enterprise" in family and 'oes' in self.urldistro:
ret = True
if ret:
- version = self.treeinfo.get("general", "version")
+ if 'Tumbleweed' not in family:
+ version = self.treeinfo.get("general", "version")
+ else:
+ version = "tmblweed"
distro_version = ['VERSION', version]
self.version_from_content = distro_version
self._variantFromVersion()