rpms/PythonCAD/devel layer.py.patch, NONE, 1.1 PythonCAD.spec, 1.8, 1.9
Nicolas Chauvet
kwizart at fedoraproject.org
Mon Jun 29 16:23:06 UTC 2009
Author: kwizart
Update of /cvs/pkgs/rpms/PythonCAD/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv30582
Modified Files:
PythonCAD.spec
Added Files:
layer.py.patch
Log Message:
Fix #499932
layer.py.patch:
--- NEW FILE layer.py.patch ---
--- PythonCAD/Generic/layer.py.orig
+++ PythonCAD/Generic/layer.py
@@ -474,15 +474,15 @@
raise TypeError, "Unexpected type: " + `type(obj)`
return (_split, _objs)
- def setAutosplit(self, as):
+ def setAutosplit(self, autosplit):
"""Set the autosplit state of the Layer.
-setAutosplit(as)
-
-Argument 'as' must be a Boolean.
- """
- util.test_boolean(as)
- self.__asplit = as
+setAutosplit(autosplit)
+
+Argument 'autosplit' must be a Boolean.
+ """
+ util.test_boolean(autosplit)
+ self.__asplit = autosplit
def getAutosplit(self):
"""Retrieve the autosplit state of the Layer.
Index: PythonCAD.spec
===================================================================
RCS file: /cvs/pkgs/rpms/PythonCAD/devel/PythonCAD.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -p -r1.8 -r1.9
--- PythonCAD.spec 4 Mar 2009 17:41:26 -0000 1.8
+++ PythonCAD.spec 29 Jun 2009 16:22:35 -0000 1.9
@@ -9,12 +9,13 @@
Summary: Python scriptable CAD package
Name: PythonCAD
Version: %(echo %{_version} |sed 's|DS|0.|'|sed 's|-R|.|')
-Release: 6%{?dist}
+Release: 7%{?dist}
Group: Applications/Engineering
License: GPLv2+
URL: http://www.pythoncad.org/
Source0: http://www.pythoncad.org/releases/%{name}-%{_version}.tar.bz2
Source1: %{name}.desktop
+Patch0: layer.py.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
@@ -37,6 +38,8 @@ December 21, 2002.
%prep
%setup -q -n %{name}-%{_version}
+%patch0 -p0 -b .reserved
+
cp -p %{SOURCE1} .
%build
@@ -104,6 +107,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Mon Jun 29 2009 kwizart < kwizart at gmail.com > - 0.1.36-7
+- Fix "as" been a reserved keyword starting with python2.6
+ Patch from leigh123linux at googlemail.com - #499932
+
* Wed Mar 4 2009 kwizart < kwizart at gmail.com > - 0.1.36-6
- Rebuild
More information about the fedora-extras-commits
mailing list