- bsc#989652 - Cannot create vms with virt-manager after upgrade

from SLES11SP4 to SLES12SP2
  virtman-show-suse-install-repos.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=325
This commit is contained in:
Charles Arnold 2016-07-19 22:29:48 +00:00 committed by Git OBS Bridge
parent b27495e815
commit 759c2de5b1
3 changed files with 13 additions and 5 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Jul 19 16:23:06 MDT 2016 - carnold@suse.com
- bsc#989652 - Cannot create vms with virt-manager after upgrade
from SLES11SP4 to SLES12SP2
virtman-show-suse-install-repos.patch
-------------------------------------------------------------------
Mon Jun 20 15:21:20 MDT 2016 - carnold@suse.com

View File

@ -9,7 +9,7 @@ Index: virt-manager-1.4.0/virtinst/util.py
===================================================================
--- virt-manager-1.4.0.orig/virtinst/util.py
+++ virt-manager-1.4.0/virtinst/util.py
@@ -552,3 +552,22 @@ def getInstallRepos(enabled_sources_only
@@ -553,3 +553,22 @@ def getInstallRepos(enabled_sources_only
return (index_dom0, zypper_output)

View File

@ -38,7 +38,7 @@ Index: virt-manager-1.4.0/virtinst/util.py
def listify(l):
if l is None:
@@ -452,3 +455,100 @@ def make_meter(quiet):
@@ -452,3 +455,101 @@ def make_meter(quiet):
if quiet:
return progress.BaseMeter()
return progress.TextMeter(fo=sys.stdout)
@ -116,9 +116,10 @@ Index: virt-manager-1.4.0/virtinst/util.py
+ zypper_header = [x.strip(' ') for x in zypper_list[0].split("|")]
+ uri_index = zypper_header.index("URI")
+ except:
+ if dom0_inst_source is None:
+ dom0_inst_source = []
+ return (0, dom0_inst_source)
+ inst_source = []
+ if dom0_inst_source:
+ inst_source = [dom0_inst_source]
+ return (0, inst_source)
+
+ index_dom0 = -1
+ number_of_sources = 0