Date: Fri, 1 Feb 2013 01:24:10 +0000 (UTC) From: Jason Helfman <jgh@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r311344 - in head/devel/libvirt: . files Message-ID: <201302010124.r111OASX006097@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jgh Date: Fri Feb 1 01:24:09 2013 New Revision: 311344 URL: http://svnweb.freebsd.org/changeset/ports/311344 Log: - fix python bindings - upstream git commit a6b8bae5a6a4752926eba409202ec061d81c6c8a Added: head/devel/libvirt/files/ head/devel/libvirt/files/patch-python__generator.py (contents, props changed) Modified: head/devel/libvirt/Makefile Modified: head/devel/libvirt/Makefile ============================================================================== --- head/devel/libvirt/Makefile Fri Feb 1 01:15:38 2013 (r311343) +++ head/devel/libvirt/Makefile Fri Feb 1 01:24:09 2013 (r311344) @@ -3,6 +3,7 @@ PORTNAME= libvirt PORTVERSION= 1.0.2 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://libvirt.org/sources/ Added: head/devel/libvirt/files/patch-python__generator.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/libvirt/files/patch-python__generator.py Fri Feb 1 01:24:09 2013 (r311344) @@ -0,0 +1,35 @@ +commit a6b8bae5a6a4752926eba409202ec061d81c6c8a +Author: Serge Hallyn <serge.hallyn@canonical.com> +Date: Wed Jan 30 21:05:45 2013 -0600 + + complete virterror->virerror name change + + Without these two string changes in generator.py, the + virGetLastError wrapper does not get created in + /usr/share/pyshared/libvirt.py. Noticed when running + tests with virt-install. + + Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> + +diff --git a/python/generator.py b/python/generator.py +index 5d27f66..71ca883 100755 +--- ./python/generator.py ++++ ./python/generator.py +@@ -123,7 +123,7 @@ class docParser(xml.sax.handler.ContentHandler): + self.function_return_field = attrs['field'] + elif tag == 'enum': + if (attrs['file'] == "libvirt" or +- attrs['file'] == "virterror"): ++ attrs['file'] == "virerror"): + enum(attrs['type'],attrs['name'],attrs['value']) + elif attrs['file'] == "libvirt-lxc": + lxc_enum(attrs['type'],attrs['name'],attrs['value']) +@@ -137,7 +137,7 @@ class docParser(xml.sax.handler.ContentHandler): + if self.function != None: + if (self.function_module == "libvirt" or + self.function_module == "virevent" or +- self.function_module == "virterror"): ++ self.function_module == "virerror"): + function(self.function, self.function_descr, + self.function_return, self.function_args, + self.function_file, self.function_module,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302010124.r111OASX006097>