summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2011-09-15 16:36:08 -0600
committerDaniel Veillard <veillard@redhat.com>2011-09-20 16:55:12 +0800
commitbee46866e48265c982165ec9e01b9a781599e6d6 (patch)
treeb93a8ef740a050432ff89a73ee19060a92708c64
parent1b2709958b8e6c1f39cbdeeddb2449e82b9df443 (diff)
downloadlibvirt-python-v6-libvirt-0.9.4-13.el6.tar.gz
libvirt-python-v6-libvirt-0.9.4-13.el6.tar.xz
libvirt-python-v6-libvirt-0.9.4-13.el6.zip
For https://bugzilla.redhat.com/show_bug.cgi?id=736040 Recent generator refactoring broke libvirt.py. With this patch, libvirt.py is generated exactly the same as before offending commit 9eba0d25. (cherry picked from commit 9ed46a3ed7d7f26844accac7e5295650ba661e6c)
-rwxr-xr-xgenerator.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/generator.py b/generator.py
index 62bea43..4a5753a 100755
--- a/generator.py
+++ b/generator.py
@@ -120,7 +120,8 @@ class docParser(xml.sax.handler.ContentHandler):
if attrs.has_key('field'):
self.function_return_field = attrs['field']
elif tag == 'enum':
- if attrs['file'] == "libvirt":
+ if (attrs['file'] == "libvirt" or
+ attrs['file'] == "virterror"):
enum(attrs['type'],attrs['name'],attrs['value'])
elif attrs['file'] == "libvirt-qemu":
qemu_enum(attrs['type'],attrs['name'],attrs['value'])
@@ -130,7 +131,9 @@ class docParser(xml.sax.handler.ContentHandler):
print "end %s" % tag
if tag == 'function':
if self.function != None:
- if self.function_module == "libvirt":
+ if (self.function_module == "libvirt" or
+ self.function_module == "event" or
+ self.function_module == "virterror"):
function(self.function, self.function_descr,
self.function_return, self.function_args,
self.function_file, self.function_module,