rpms/virtaal/F-13 virtaal-0.5.2-bug1388_tmcontroller_nonetype.patch, NONE, 1.1 virtaal.spec, 1.18, 1.19
dwayne
dwayne at fedoraproject.org
Thu Mar 25 09:29:06 UTC 2010
Author: dwayne
Update of /cvs/pkgs/rpms/virtaal/F-13
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv30021
Modified Files:
virtaal.spec
Added Files:
virtaal-0.5.2-bug1388_tmcontroller_nonetype.patch
Log Message:
* Thu Mar 25 2010 Dwayne Bailey <dwayne at translate.org.za> - 0.5.2-2
- Backport TMController fix (bug #1388)
virtaal-0.5.2-bug1388_tmcontroller_nonetype.patch:
tmcontroller.py | 3 +++
1 file changed, 3 insertions(+)
--- NEW FILE virtaal-0.5.2-bug1388_tmcontroller_nonetype.patch ---
--- src/trunk/virtaal/virtaal/plugins/tm/tmcontroller.py 2010/03/09 12:22:16 13921
+++ src/trunk/virtaal/virtaal/plugins/tm/tmcontroller.py 2010/03/09 12:23:26 13922
@@ -194,6 +194,9 @@
self.storecursor = cursor
self.unit = cursor.deref()
+ if self.unit is None:
+ return
+
if self.view.active and self.unit.istranslated():
self.view.mnu_suggestions.set_active(False)
elif not self.view.active and not self.unit.istranslated():
Index: virtaal.spec
===================================================================
RCS file: /cvs/pkgs/rpms/virtaal/F-13/virtaal.spec,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -p -r1.18 -r1.19
--- virtaal.spec 20 Feb 2010 16:52:36 -0000 1.18
+++ virtaal.spec 25 Mar 2010 09:29:06 -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
@@ -14,6 +14,7 @@ BuildRoot: %{_tmppath}/%{name}-%{ve
Patch0: virtaal-0.5.0-setup_drop_MO_generation.patch
Patch1: virtaal-0.3.0-autocorr_shared_location.patch
Patch2: virtaal-0.5.2-bug1355-opentran-xmlrpc-errors.patch
+Patch3: virtaal-0.5.2-bug1388_tmcontroller_nonetype.patch
BuildArch: noarch
BuildRequires: python
@@ -77,6 +78,7 @@ DTD files, subtitles, and other formats.
%patch0 -p1 -b .setup_drop_MO_generation
%patch1 -p1 -b .autocorr_shared_location
%patch2 -p3 -b .bug1355_opentran_xmlrpc_errors
+%patch3 -p3 -b .bug1388_tmcontroller_nonetype
%build
%{__python} setup.py build
@@ -162,6 +164,9 @@ rm -rf %{buildroot}
%changelog
+* Thu Mar 25 2010 Dwayne Bailey <dwayne at translate.org.za> - 0.5.2-2
+- Backport TMController fix (bug #1388)
+
* Sat Feb 20 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