diff options
author | Jimmy Olgeni <olgeni@FreeBSD.org> | 2002-11-16 20:22:55 +0000 |
---|---|---|
committer | Jimmy Olgeni <olgeni@FreeBSD.org> | 2002-11-16 20:22:55 +0000 |
commit | b2cf40e6be0fd431d767dd61f7de9d59e2368f07 (patch) | |
tree | 953f7d0dcd5e40dc7ed7d765a52db22f62faa560 | |
parent | * Add more complete PORTDOCS, namely the same files the base installs (diff) |
Bugfix: non-integer lists terminate with a NIL value that should
be skipped when unpacking terms (also submitted to author).
Notes
Notes:
svn path=/head/; revision=70262
-rw-r--r-- | devel/py_otp_interface/Makefile | 2 | ||||
-rw-r--r-- | devel/py_otp_interface/files/patch-erl__term.py | 11 |
2 files changed, 11 insertions, 2 deletions
diff --git a/devel/py_otp_interface/Makefile b/devel/py_otp_interface/Makefile index aab260e5adcf..b0f9feb4e8a4 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= 2 +PORTREVISION= 3 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 7d918ca2e339..f9e9af334ecf 100644 --- a/devel/py_otp_interface/files/patch-erl__term.py +++ b/devel/py_otp_interface/files/patch-erl__term.py @@ -2,7 +2,7 @@ $FreeBSD$ --- erl_term.py.orig Wed May 29 00:09:25 2002 -+++ erl_term.py Sat Nov 16 00:53:45 2002 ++++ erl_term.py Sat Nov 16 17:40:38 2002 @@ -282,7 +282,7 @@ if dataLen < 5: return (None, data) @@ -12,6 +12,15 @@ $FreeBSD$ elif data0 == MAGIC_FLOAT: if dataLen < 32: +@@ -373,7 +373,7 @@ + (elements, remainingData) = _UnpackTermSeq(arity, data[5:]) + if elements == None: + return (None, data) +- return (ErlList(elements), remainingData) ++ return (ErlList(elements), remainingData[1:]) # skip MAGIC_NIL + + elif data0 == MAGIC_BINARY: + if dataLen < 5: @@ -552,11 +552,11 @@ def _PackString(term): |