[freecad] 04/09: Fix syntax error in importOCA.py.

Anton Gladky gladk at alioth.debian.org
Fri Sep 27 19:51:31 UTC 2013


This is an automated email from the git hooks/post-receive script.

gladk pushed a commit to branch master
in repository freecad.

commit fcaeb916a2a4c08d51fb37e13039d73f8952dc38
Author: Anton Gladky <gladky.anton at gmail.com>
Date:   Fri Sep 27 19:54:04 2013 +0200

    Fix syntax error in importOCA.py.
---
 debian/patches/fix_syntax_importOca.patch |   22 ++++++++++++++++++++++
 debian/patches/series                     |    1 +
 2 files changed, 23 insertions(+)

diff --git a/debian/patches/fix_syntax_importOca.patch b/debian/patches/fix_syntax_importOca.patch
new file mode 100644
index 0000000..9bacc60
--- /dev/null
+++ b/debian/patches/fix_syntax_importOca.patch
@@ -0,0 +1,22 @@
+Description: fix syntax error.
+Author: Anton Gladky <gladk at debian.org>
+Last-Update: 2013-09-27
+
+--- a/src/Mod/Draft/importOCA.py
++++ b/src/Mod/Draft/importOCA.py
+@@ -258,13 +258,13 @@
+     oca.write("# edges\r\n")
+     count = 1
+     for e in edges:
+-        if DraftGeomUtils.geomType(e) == "Line"):
++        if (DraftGeomUtils.geomType(e) == "Line"):
+             oca.write("L"+str(count)+"=")
+             oca.write(writepoint(e.Vertexes[0].Point))
+             oca.write(" ")
+             oca.write(writepoint(e.Vertexes[-1].Point))
+             oca.write("\r\n")
+-        elif DraftGeomUtils.geomType(e) == "Circle"):
++        elif (DraftGeomUtils.geomType(e) == "Circle"):
+             if (len(e.Vertexes) > 1):
+                 oca.write("C"+str(count)+"=ARC ")
+                 oca.write(writepoint(e.Vertexes[0].Point))
diff --git a/debian/patches/series b/debian/patches/series
index 5ca5306..052c69a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -8,3 +8,4 @@ use_share.patch
 #coin80.patch
 do_not_install_binary_examples.patch
 exclude_ply.patch
+fix_syntax_importOca.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/freecad.git



More information about the debian-science-commits mailing list