1 |
cardoe 13/01/31 16:03:54 |
2 |
|
3 |
Added: 0001-complete-virterror-virerror-name-change.patch |
4 |
Log: |
5 |
The 1.0.2 release had broken python bindings. |
6 |
|
7 |
(Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 app-emulation/libvirt/files/0001-complete-virterror-virerror-name-change.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libvirt/files/0001-complete-virterror-virerror-name-change.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libvirt/files/0001-complete-virterror-virerror-name-change.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: 0001-complete-virterror-virerror-name-change.patch |
16 |
=================================================================== |
17 |
From a6b8bae5a6a4752926eba409202ec061d81c6c8a Mon Sep 17 00:00:00 2001 |
18 |
From: Serge Hallyn <serge.hallyn@×××××××××.com> |
19 |
Date: Wed, 30 Jan 2013 21:05:45 -0600 |
20 |
Subject: [PATCH] complete virterror->virerror name change |
21 |
|
22 |
Without these two string changes in generator.py, the |
23 |
virGetLastError wrapper does not get created in |
24 |
/usr/share/pyshared/libvirt.py. Noticed when running |
25 |
tests with virt-install. |
26 |
|
27 |
Signed-off-by: Serge Hallyn <serge.hallyn@××××××.com> |
28 |
--- |
29 |
python/generator.py | 4 ++-- |
30 |
1 file changed, 2 insertions(+), 2 deletions(-) |
31 |
|
32 |
diff --git a/python/generator.py b/python/generator.py |
33 |
index 5d27f66..71ca883 100755 |
34 |
--- a/python/generator.py |
35 |
+++ b/python/generator.py |
36 |
@@ -123,7 +123,7 @@ class docParser(xml.sax.handler.ContentHandler): |
37 |
self.function_return_field = attrs['field'] |
38 |
elif tag == 'enum': |
39 |
if (attrs['file'] == "libvirt" or |
40 |
- attrs['file'] == "virterror"): |
41 |
+ attrs['file'] == "virerror"): |
42 |
enum(attrs['type'],attrs['name'],attrs['value']) |
43 |
elif attrs['file'] == "libvirt-lxc": |
44 |
lxc_enum(attrs['type'],attrs['name'],attrs['value']) |
45 |
@@ -137,7 +137,7 @@ class docParser(xml.sax.handler.ContentHandler): |
46 |
if self.function != None: |
47 |
if (self.function_module == "libvirt" or |
48 |
self.function_module == "virevent" or |
49 |
- self.function_module == "virterror"): |
50 |
+ self.function_module == "virerror"): |
51 |
function(self.function, self.function_descr, |
52 |
self.function_return, self.function_args, |
53 |
self.function_file, self.function_module, |
54 |
-- |
55 |
1.7.12.4 |