1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-21 04:10:37 +02:00

Merge branch 'diff' into 'master'

Show \r when diffing reproducible apk

See merge request fdroid/fdroidserver!1529
This commit is contained in:
Hans-Christoph Steiner 2024-09-19 13:25:55 +00:00
commit 9a65e24930

View File

@ -3854,7 +3854,7 @@ def compare_apks(apk1, apk2, tmp_dir, log_dir=None):
if len(lines) != 1 or 'META-INF' not in lines[0]: if len(lines) != 1 or 'META-INF' not in lines[0]:
if set_command_in_config('meld'): if set_command_in_config('meld'):
p = FDroidPopen([config['meld'], apk1dir, apk2dir], output=False) p = FDroidPopen([config['meld'], apk1dir, apk2dir], output=False)
return "Unexpected diff output:\n" + p.output return "Unexpected diff output:\n" + p.output.replace("\r", "^M")
# since everything verifies, delete the comparison to keep cruft down # since everything verifies, delete the comparison to keep cruft down
shutil.rmtree(apk1dir) shutil.rmtree(apk1dir)