[sagemath] 02/02: Add patch to work around singular doc problem.

Tobias Hansen thansen at moszumanska.debian.org
Mon Mar 2 12:53:35 UTC 2015


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

thansen pushed a commit to branch master
in repository sagemath.

commit 330c26f32678293d4f285942248a1e3b0bd3369b
Author: Tobias Hansen <tobias.han at gmx.de>
Date:   Mon Mar 2 12:50:34 2015 +0000

    Add patch to work around singular doc problem.
---
 debian/patches/series           |  1 +
 debian/patches/trac_17872.patch | 12 ++++++++++++
 2 files changed, 13 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
index 2291332..72cfd41 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 unbreak.patch
+trac_17872.patch
diff --git a/debian/patches/trac_17872.patch b/debian/patches/trac_17872.patch
new file mode 100644
index 0000000..c5ae59b
--- /dev/null
+++ b/debian/patches/trac_17872.patch
@@ -0,0 +1,12 @@
+--- a/sage/src/sage/libs/singular/function.pyx
++++ b/sage/src/sage/libs/singular/function.pyx
+@@ -1339,7 +1339,8 @@
+ """%(self._name,self._name)
+         # Trac ticket #11268: Include the Singular documentation as a block of code
+         singular_doc = get_docstring(self._name).split('\n')
+-        return prefix + "\n::\n\n"+'\n'.join(["    "+L for L in singular_doc])
++        if len(singular_doc) > 1:
++            return prefix + "\n::\n\n"+'\n'.join(["    "+L for L in singular_doc])
+ 
+     cdef common_ring(self, tuple args, ring=None):
+         """

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



More information about the debian-science-commits mailing list