diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2016-11-02 05:47:13 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2016-11-02 05:47:13 -0500 |
commit | 15d26fbaef97b922f957b08ffb751cd04b30ff08 (patch) | |
tree | dcd78c0bd2b6047076bdda3f9ea54881a2645fe8 | |
parent | fc42e192508508b2c49434fd700f833c15eabbb0 (diff) | |
download | packages-15d26fbaef97b922f957b08ffb751cd04b30ff08.tar.gz packages-15d26fbaef97b922f957b08ffb751cd04b30ff08.tar.bz2 packages-15d26fbaef97b922f957b08ffb751cd04b30ff08.tar.xz packages-15d26fbaef97b922f957b08ffb751cd04b30ff08.zip |
net-wireless/crda: small patch fix.
-rw-r--r-- | net-wireless/crda/files/crda-3.18-python3.patch | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net-wireless/crda/files/crda-3.18-python3.patch b/net-wireless/crda/files/crda-3.18-python3.patch index 4f8756862..22212d821 100644 --- a/net-wireless/crda/files/crda-3.18-python3.patch +++ b/net-wireless/crda/files/crda-3.18-python3.patch @@ -43,7 +43,7 @@ diff --git a/utils/key2pub.py b/utils/key2pub.py index 3e84cd2..c76cbbb 100755 --- a/utils/key2pub.py +++ b/utils/key2pub.py -@@ -1,126 +1,128 @@ +@@ -1,127 +1,128 @@ #!/usr/bin/env python +import io @@ -145,6 +145,7 @@ index 3e84cd2..c76cbbb 100755 + import struct - output.write('#include <stdint.h>\n') +- output.write('#include <openssl/bn.h>\n') if len(struct.pack('@L', 0)) == 8: return print_ssl_64(output, name, val) else: @@ -170,9 +171,10 @@ index 3e84cd2..c76cbbb 100755 static struct pubkey keys[] = { ''') - for n in xrange(n + 1): +- for n in xrange(n + 1): - output.write(' KEYS(e_%d, n_%d),\n' % (n, n)) - output.write('};\n') ++ for n in range(n + 1): + output.write(u' KEYS(e_{0}, n_{0}),\n'.format(n)) + output.write(u'};\n') pass |