Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
xen
domu-usb-controller.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File domu-usb-controller.patch of Package xen
Index: xen-4.1.2-testing/tools/python/xen/xend/XendConfig.py =================================================================== --- xen-4.1.2-testing.orig/tools/python/xen/xend/XendConfig.py +++ xen-4.1.2-testing/tools/python/xen/xend/XendConfig.py @@ -1874,7 +1874,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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor