[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#779555: unblock: pyelliptic/1.5.5-1



Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

Please unblock package pyelliptic

Due to an error in indentation when I submitted the arithmetic.py file
upstream, many functions within that file simply do not work when called. So
that the library isn't broken for jessie, I request that this package is
unblocked (for unstable).

diff -Nru pyelliptic-1.5.5/debian/changelog pyelliptic-1.5.5/debian/changelog
--- pyelliptic-1.5.5/debian/changelog   2014-10-11 07:34:40.000000000 +1100
+++ pyelliptic-1.5.5/debian/changelog   2015-03-02 19:23:09.000000000 +1100
@@ -1,3 +1,10 @@
+pyelliptic (1.5.5-2) unstable; urgency=high
+
+  * Fixed bug where four functions in arithmetic.py are completely broken
+    (Closes: #779552)
+
+ -- Riley Baird <BM-2cVqnDuYbAU5do2DfJTrN7ZbAJ246S4XiX@bitmessage.ch>  Mon, 2
Mar 2015 18:55:10 +1100
+
 pyelliptic (1.5.5-1) unstable; urgency=medium

   * New upstream release
diff -Nru pyelliptic-1.5.5/debian/patches/fix-indentation-bug.patch
pyelliptic-1.5.5/debian/patches/fix-indentation-bug.patch
--- pyelliptic-1.5.5/debian/patches/fix-indentation-bug.patch   1970-01-01
10:00:00.000000000 +1000
+++ pyelliptic-1.5.5/debian/patches/fix-indentation-bug.patch   2015-03-02
19:33:31.000000000 +1100
@@ -0,0 +1,59 @@
+Description: Fix indentation on functions in arithmetic.py
+ When arithmetic.py was added to pyelliptic from pybitmessage, the indentation
+ was incorrect. Consequentially, four of the functions in arithmetic.py do not
+ work when called. This patch fixes the indentation such that these functions
+ work correctly when called.
+Author: Jonathan Warren <jonathan@bitmessage.org>
+Bug: https://github.com/yann2192/pyelliptic/issues/30
+Bug-Debian: https://bugs.debian.org/779552
+Origin: https://github.com/yann2192/pyelliptic/pull/31
+Index: pyelliptic_debian/pyelliptic/arithmetic.py
+===================================================================
+--- pyelliptic_debian.orig/pyelliptic/arithmetic.py    2015-03-02
13:36:53.405533955 +1100
++++ pyelliptic_debian/pyelliptic/arithmetic.py 2015-03-02 13:38:15.702920580
+1100
+@@ -36,7 +36,7 @@
+         r = high / low
+         nm, new = hm - lm * r, high - low * r
+         lm, low, hm, high = nm, new, lm, low
+-        return lm % n
++    return lm % n
+
+
+ def get_code_string(base):
+@@ -60,9 +60,9 @@
+     while val > 0:
+         result = code_string[val % base] + result
+         val /= base
+-        if len(result) < minlen:
+-            result = code_string[0] * (minlen - len(result)) + result
+-            return result
++    if len(result) < minlen:
++        result = code_string[0] * (minlen - len(result)) + result
++    return result
+
+
+ def decode(string, base):
+@@ -74,7 +74,7 @@
+         result *= base
+         result += code_string.find(string[0])
+         string = string[1:]
+-        return result
++    return result
+
+
+ def changebase(string, frm, to, minlen=0):
+@@ -91,10 +91,10 @@
+             return base10_double(a[0], a[1])
+         else:
+             return None
+-        m = ((b[1] - a[1]) * inv(b[0] - a[0], P)) % P
+-        x = (m * m - a[0] - b[0]) % P
+-        y = (m * (a[0] - x) - a[1]) % P
+-        return (x, y)
++    m = ((b[1] - a[1]) * inv(b[0] - a[0], P)) % P
++    x = (m * m - a[0] - b[0]) % P
++    y = (m * (a[0] - x) - a[1]) % P
++    return (x, y)
+
+
+ def base10_double(a):
diff -Nru pyelliptic-1.5.5/debian/patches/series
pyelliptic-1.5.5/debian/patches/series
--- pyelliptic-1.5.5/debian/patches/series      2014-10-11 07:32:26.000000000
+1100
+++ pyelliptic-1.5.5/debian/patches/series      2015-03-02 13:40:06.000000000
+1100
@@ -1 +1,2 @@
 fix-random-numbers.patch
+fix-indentation-bug.patch

unblock pyelliptic/1.5.5-1


Reply to: