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

if meld is available, use it to show differences on failed APK compare

meld is much easier to browse when comparing directory trees.
This commit is contained in:
Hans-Christoph Steiner 2015-01-07 20:09:03 +01:00
parent fc4679cebb
commit 2458577209

View File

@ -1913,6 +1913,9 @@ def compare_apks(apk1, apk2, tmp_dir):
p = FDroidPopen(['diff', '-r', apk1dir, apk2dir], output=False)
lines = p.output.splitlines()
if len(lines) != 1 or 'META-INF' not in lines[0]:
meld = find_command('meld')
if not meld is None:
p = FDroidPopen(['meld', apk1dir, apk2dir], output=False)
return("Unexpected diff output - " + p.output)
# If we get here, it seems like they're the same!