1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-19 21:30:10 +01:00

publish: use platform-neutral newlines

This commit is contained in:
Hans-Christoph Steiner 2019-09-25 13:02:19 +02:00
parent 4514983e58
commit c12007c260
No known key found for this signature in database
GPG Key ID: 3E177817BA1B9BFA

View File

@ -88,10 +88,10 @@ def read_fingerprints_from_keystore():
if p.returncode != 0: if p.returncode != 0:
raise FDroidException('could not read keystore {}'.format(config['keystore'])) raise FDroidException('could not read keystore {}'.format(config['keystore']))
realias = re.compile('Alias name: (?P<alias>.+)\n') realias = re.compile('Alias name: (?P<alias>.+)' + os.linesep)
resha256 = re.compile(r'\s+SHA256: (?P<sha256>[:0-9A-F]{95})\n') resha256 = re.compile(r'\s+SHA256: (?P<sha256>[:0-9A-F]{95})' + os.linesep)
fps = {} fps = {}
for block in p.output.split(('*' * 43) + '\n' + '*' * 43): for block in p.output.split(('*' * 43) + os.linesep + '*' * 43):
s_alias = realias.search(block) s_alias = realias.search(block)
s_sha256 = resha256.search(block) s_sha256 = resha256.search(block)
if s_alias and s_sha256: if s_alias and s_sha256: