From 35af56fe9e5602ed080d359fa9db8deed682ddd8 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Wed, 22 Dec 2010 16:17:36 -0500 Subject: [PATCH] Update to upstream 0.0.12a Resolves: #663004 --- .gitignore | 1 + pyasn1-any.patch | 31 +++++++++++++++---------------- python-pyasn1.spec | 7 +++++-- sources | 2 +- 4 files changed, 22 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index bc1a19d..864e99c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ pyasn1-0.0.9a.tar.gz +/pyasn1-0.0.12a.tar.gz diff --git a/pyasn1-any.patch b/pyasn1-any.patch index 302aeb2..73004d8 100644 --- a/pyasn1-any.patch +++ b/pyasn1-any.patch @@ -1,7 +1,7 @@ -diff -uN --recursive pyasn1-0.0.9a/pyasn1/v1/codec/ber/decoder.py pyasn1-0.0.9a.any/pyasn1/v1/codec/ber/decoder.py ---- pyasn1-0.0.9a/pyasn1/v1/codec/ber/decoder.py 2008-11-23 06:45:14.000000000 -0500 -+++ pyasn1-0.0.9a.any/pyasn1/v1/codec/ber/decoder.py 2009-11-16 15:36:38.000000000 -0500 -@@ -312,6 +312,29 @@ +diff -u --recursive pyasn1-0.0.12a/pyasn1/codec/ber/decoder.py pyasn1-0.0.12a.any/pyasn1/codec/ber/decoder.py +--- pyasn1-0.0.12a/pyasn1/codec/ber/decoder.py 2010-11-19 12:43:25.000000000 -0500 ++++ pyasn1-0.0.12a.any/pyasn1/codec/ber/decoder.py 2010-12-22 15:22:03.000000000 -0500 +@@ -316,6 +316,29 @@ class UTCTimeDecoder(OctetStringDecoder): protoComponent = useful.UTCTime() @@ -31,7 +31,7 @@ diff -uN --recursive pyasn1-0.0.9a/pyasn1/v1/codec/ber/decoder.py pyasn1-0.0.9a. codecMap = { eoo.endOfOctets.tagSet: EndOfOctetsDecoder(), univ.Integer.tagSet: IntegerDecoder(), -@@ -352,6 +375,7 @@ +@@ -359,6 +382,7 @@ # Decode tag & length while state != stStop: if state == stDecodeTag: @@ -39,7 +39,7 @@ diff -uN --recursive pyasn1-0.0.9a/pyasn1/v1/codec/ber/decoder.py pyasn1-0.0.9a. # Decode tag if not substrate: raise error.SubstrateUnderrunError( -@@ -415,6 +439,7 @@ +@@ -422,6 +446,7 @@ raise error.SubstrateUnderrunError( '%d-octet short' % (length - len(substrate)) ) @@ -47,7 +47,7 @@ diff -uN --recursive pyasn1-0.0.9a/pyasn1/v1/codec/ber/decoder.py pyasn1-0.0.9a. if state == stGetValueDecoder: if asn1Spec is None: state = stGetValueDecoderByTag -@@ -457,7 +482,12 @@ +@@ -464,7 +489,12 @@ __chosenSpec = asn1Spec else: __chosenSpec = None @@ -61,10 +61,9 @@ diff -uN --recursive pyasn1-0.0.9a/pyasn1/v1/codec/ber/decoder.py pyasn1-0.0.9a. __chosenSpec.getTypeMap().has_key(tagSet): state = stTryAsExplicitTag else: -Binary files pyasn1-0.0.9a/pyasn1/v1/codec/ber/.decoder.py.swp and pyasn1-0.0.9a.any/pyasn1/v1/codec/ber/.decoder.py.swp differ -diff -uN --recursive pyasn1-0.0.9a/pyasn1/v1/codec/ber/encoder.py pyasn1-0.0.9a.any/pyasn1/v1/codec/ber/encoder.py ---- pyasn1-0.0.9a/pyasn1/v1/codec/ber/encoder.py 2008-05-17 05:59:56.000000000 -0400 -+++ pyasn1-0.0.9a.any/pyasn1/v1/codec/ber/encoder.py 2009-11-16 15:36:38.000000000 -0500 +diff -u --recursive pyasn1-0.0.12a/pyasn1/codec/ber/encoder.py pyasn1-0.0.12a.any/pyasn1/codec/ber/encoder.py +--- pyasn1-0.0.12a/pyasn1/codec/ber/encoder.py 2010-11-19 12:43:25.000000000 -0500 ++++ pyasn1-0.0.12a.any/pyasn1/codec/ber/encoder.py 2010-12-22 15:22:03.000000000 -0500 @@ -194,6 +194,16 @@ ) + substrate return substrate, 1 @@ -75,7 +74,7 @@ diff -uN --recursive pyasn1-0.0.9a/pyasn1/v1/codec/ber/encoder.py pyasn1-0.0.9a. + return chr(t[0]|t[1]|t[2]|tag.tagFormatConstructed) + else: + return chr(t[0]|t[1]|t[2]) -+ def _encodeValue(self, encodeFun, value, defMode, maxChunkSize): ++ def encodeValue(self, encodeFun, value, defMode, maxChunkSize): + assert len(value._value) <= maxChunkSize + return str(value._value), 0 + @@ -94,10 +93,10 @@ diff -uN --recursive pyasn1-0.0.9a/pyasn1/v1/codec/ber/encoder.py pyasn1-0.0.9a. if not concreteEncoder: # XXX baseTagSet = tagSet.getBaseTag() -diff -uN --recursive pyasn1-0.0.9a/pyasn1/v1/type/univ.py pyasn1-0.0.9a.any/pyasn1/v1/type/univ.py ---- pyasn1-0.0.9a/pyasn1/v1/type/univ.py 2008-11-23 06:45:35.000000000 -0500 -+++ pyasn1-0.0.9a.any/pyasn1/v1/type/univ.py 2009-11-16 15:36:38.000000000 -0500 -@@ -629,5 +629,10 @@ +diff -u --recursive pyasn1-0.0.12a/pyasn1/type/univ.py pyasn1-0.0.12a.any/pyasn1/type/univ.py +--- pyasn1-0.0.12a/pyasn1/type/univ.py 2010-11-19 12:43:25.000000000 -0500 ++++ pyasn1-0.0.12a.any/pyasn1/type/univ.py 2010-12-22 15:22:03.000000000 -0500 +@@ -639,5 +639,10 @@ def setDefaultComponents(self): pass diff --git a/python-pyasn1.spec b/python-pyasn1.spec index 24fecbd..231ffe3 100644 --- a/python-pyasn1.spec +++ b/python-pyasn1.spec @@ -3,8 +3,8 @@ %define module pyasn1 Name: python-pyasn1 -Version: 0.0.9a -Release: 2%{?dist} +Version: 0.0.12a +Release: 1%{?dist} Summary: ASN.1 tools for Python License: BSD Group: System Environment/Libraries @@ -46,6 +46,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Wed Dec 22 2010 Rob Crittenden - 0.0.12a-1 +- Update to upstream version 0.0.12a + * Thu Jul 22 2010 David Malcolm - 0.0.9a-2 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild diff --git a/sources b/sources index 73f8ec0..a503a46 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -a6b26c57bae5484381cd558c15277c03 pyasn1-0.0.9a.tar.gz +ab73da1ea0acf4a510b3f67f2d5a2b6f pyasn1-0.0.12a.tar.gz