Updating link to change in openSUSE:Factory/xen revision 98.0
OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=4293852b248e1f267831a4305b1c05a9
This commit is contained in:
committed by
Git OBS Bridge
parent
8198e029dc
commit
3ab5d775a1
20
domu-usb-controller.patch
Normal file
20
domu-usb-controller.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
Index: xen-4.0.0-testing/tools/python/xen/xend/XendConfig.py
|
||||
===================================================================
|
||||
--- xen-4.0.0-testing.orig/tools/python/xen/xend/XendConfig.py
|
||||
+++ xen-4.0.0-testing/tools/python/xen/xend/XendConfig.py
|
||||
@@ -1861,7 +1861,14 @@ class XendConfig(dict):
|
||||
ports = sxp.child(dev_sxp, 'port')
|
||||
for port in ports[1:]:
|
||||
try:
|
||||
- num, bus = port
|
||||
+ # When ['port' ['1','']] is saved into sxp file, it will become (port (1 ))
|
||||
+ # If using this sxp file, here variable "port" will be port=1,
|
||||
+ # we should process it, otherwise, it will report error.
|
||||
+ if len(port) == 1:
|
||||
+ num = port[0]
|
||||
+ bus = ""
|
||||
+ else:
|
||||
+ num, bus = port
|
||||
dev_config['port-%i' % int(num)] = str(bus)
|
||||
except TypeError:
|
||||
pass
|
Reference in New Issue
Block a user