aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2002-11-16 08:18:29 +0800
committerolgeni <olgeni@FreeBSD.org>2002-11-16 08:18:29 +0800
commit8c6c5b410534795c9bf1fde067e64ded5c88698e (patch)
tree4708860fe5ec2e50ec618722046fb180dbbc68af
parent139335370fc4fd360b9e1fb0bbb13609aee09b02 (diff)
downloadfreebsd-ports-gnome-8c6c5b410534795c9bf1fde067e64ded5c88698e.tar.gz
freebsd-ports-gnome-8c6c5b410534795c9bf1fde067e64ded5c88698e.tar.zst
freebsd-ports-gnome-8c6c5b410534795c9bf1fde067e64ded5c88698e.zip
Caught bug (typo) in erl_term._PackString. Also submitted to author.
-rw-r--r--devel/py_otp_interface/Makefile2
-rw-r--r--devel/py_otp_interface/files/patch-erl__term.py18
2 files changed, 17 insertions, 3 deletions
diff --git a/devel/py_otp_interface/Makefile b/devel/py_otp_interface/Makefile
index b0097d809739..aab260e5adcf 100644
--- a/devel/py_otp_interface/Makefile
+++ b/devel/py_otp_interface/Makefile
@@ -7,7 +7,7 @@
PORTNAME= py_otp_interface
PORTVERSION= 0.91
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel python
MASTER_SITES= http://www.erlang.org/contrib/
DISTNAME= py_interface-${PORTVERSION}
diff --git a/devel/py_otp_interface/files/patch-erl__term.py b/devel/py_otp_interface/files/patch-erl__term.py
index 15809b6b6926..7d918ca2e339 100644
--- a/devel/py_otp_interface/files/patch-erl__term.py
+++ b/devel/py_otp_interface/files/patch-erl__term.py
@@ -1,8 +1,8 @@
$FreeBSD$
---- erl_term.py.orig Fri Nov 15 18:53:36 2002
-+++ erl_term.py Fri Nov 15 18:54:03 2002
+--- erl_term.py.orig Wed May 29 00:09:25 2002
++++ erl_term.py Sat Nov 16 00:53:45 2002
@@ -282,7 +282,7 @@
if dataLen < 5:
return (None, data)
@@ -12,3 +12,17 @@ $FreeBSD$
elif data0 == MAGIC_FLOAT:
if dataLen < 32:
+@@ -552,11 +552,11 @@
+
+ def _PackString(term):
+ if len(term) == 0:
+- return PackList([])
++ return _PackList([])
+ elif len(term) <= 65535:
+ return _PackInt1(MAGIC_STRING) + _PackInt2(len(term)) + term
+ else:
+- return PackList(map(lambda c: ord(c), term))
++ return _PackList(map(lambda c: ord(c), term))
+
+ def _PackList(term):
+ if len(term) == 0: