diff options
author | Cole Robinson <crobinso@redhat.com> | 2011-09-15 16:36:08 -0600 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2011-09-20 16:55:12 +0800 |
commit | bee46866e48265c982165ec9e01b9a781599e6d6 (patch) | |
tree | b93a8ef740a050432ff89a73ee19060a92708c64 /generator.py | |
parent | 1b2709958b8e6c1f39cbdeeddb2449e82b9df443 (diff) | |
download | libvirt-python-v6-bee46866e48265c982165ec9e01b9a781599e6d6.tar.gz libvirt-python-v6-bee46866e48265c982165ec9e01b9a781599e6d6.tar.xz libvirt-python-v6-bee46866e48265c982165ec9e01b9a781599e6d6.zip |
python: Fix libvirt.py generation to include virterror infolibvirt-0.9.4-23.el6_2.1libvirt-0.9.4-23.el6libvirt-0.9.4-22.el6libvirt-0.9.4-21.el6libvirt-0.9.4-20.el6libvirt-0.9.4-19.el6libvirt-0.9.4-18.el6libvirt-0.9.4-17.el6libvirt-0.9.4-16.el6libvirt-0.9.4-15.el6libvirt-0.9.4-14.el6libvirt-0.9.4-13.el6libvirt-0.9.4-12.el6RHEL-6.2
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)
Diffstat (limited to 'generator.py')
-rwxr-xr-x | generator.py | 7 |
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, |