rpms/virtaal/devel virtaal-0.5.2-bug1355-opentran-xmlrpc-errors.patch, NONE, 1.1 virtaal.spec, 1.18, 1.19

dwayne dwayne at fedoraproject.org
Sat Feb 20 15:58:07 UTC 2010


Author: dwayne

Update of /cvs/pkgs/rpms/virtaal/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv22593

Modified Files:
	virtaal.spec 
Added Files:
	virtaal-0.5.2-bug1355-opentran-xmlrpc-errors.patch 
Log Message:
* Sat Feb 20 2010 Dwayne Bailey <dwayne at translate.org.za> - 0.5.2-2
- Actualy commit the XMLRPC fix
- Ensure we build with python2


virtaal-0.5.2-bug1355-opentran-xmlrpc-errors.patch:
 opentranclient.py |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

--- NEW FILE virtaal-0.5.2-bug1355-opentran-xmlrpc-errors.patch ---
--- src/trunk/virtaal/virtaal/support/opentranclient.py	2010/02/05 15:39:58	13764
+++ src/trunk/virtaal/virtaal/support/opentranclient.py	2010/02/05 15:41:04	13765
@@ -126,7 +126,11 @@
 
     def format_suggestions(self, id, response):
         """clean up open tran suggestion and use the same format as tmserver"""
-        (suggestions,), fish = xmlrpclib.loads(response)
+        try:
+            (suggestions,), fish = xmlrpclib.loads(response)
+        except Exception, exc:
+            logging.debug('XML-RPC exception: %s' % (exc))
+            return []
         self.last_suggestions = suggestions
         results = []
         for suggestion in suggestions:


Index: virtaal.spec
===================================================================
RCS file: /cvs/pkgs/rpms/virtaal/devel/virtaal.spec,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -p -r1.18 -r1.19
--- virtaal.spec	20 Feb 2010 13:22:36 -0000	1.18
+++ virtaal.spec	20 Feb 2010 15:58:07 -0000	1.19
@@ -2,7 +2,7 @@
 
 Name:           virtaal
 Version:        0.5.2
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Localization and translation editor
 
 Group:          Development/Tools
@@ -17,7 +17,7 @@ Patch2:         virtaal-0.5.2-bug1355-op
 
 BuildArch:      noarch
 BuildRequires:  python
-BuildRequires:  python-devel
+BuildRequires:  python2-devel
 BuildRequires:  desktop-file-utils
 BuildRequires:  gettext
 BuildRequires:  intltool
@@ -162,6 +162,10 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Sat Feb 20 2010 Dwayne Bailey <dwayne at translate.org.za> - 0.5.2-2
+- Actualy commit the XMLRPC fix
+- Ensure we build with python2
+
 * Fri Jan 29 2010 Dwayne Bailey <dwayne at translate.org.za> - 0.5.2-1
 - Update to 0.5.2
    - Correctly package the lookup plugin that was missing before



More information about the scm-commits mailing list