PROJECT_MOVED -> https://lab.nexedi.com/nexedi/slapos
[slapos.git] / component / ca-certificates / ca-certificates-any-python.patch
1 --- mozilla/certdata2pem.py     2016-01-04 18:31:05.000000000 +0100
2 +++ mozilla/certdata2pem.py     2016-01-05 20:05:53.595360495 +0100
3 @@ -63,7 +63,7 @@
4              else:
5                  value += line
6              continue
7 -        obj[field] = value
8 +        obj[field] = bytes(value)
9          in_multiline = False
10          continue
11      if line.startswith('CKA_CLASS'):
12 --- mozilla/Makefile    2015-12-20 10:49:23.000000000 +0100
13 +++ mozilla/Makefile    2016-01-05 20:19:11.006874271 +0100
14 @@ -3,7 +3,8 @@
15  #
16  
17  all:
18 -       python certdata2pem.py
19 +       for x in '' 2 3; do type python$$x && break; done >/dev/null \
20 +       && python$$x certdata2pem.py
21  
22  clean:
23         -rm -f *.crt