From 15d26fbaef97b922f957b08ffb751cd04b30ff08 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 2 Nov 2016 05:47:13 -0500 Subject: net-wireless/crda: small patch fix. --- net-wireless/crda/files/crda-3.18-python3.patch | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'net-wireless/crda') 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 \n') +- output.write('#include \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 -- cgit v1.2.3-70-g09d2