mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 23:10:29 +03: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:
parent
fc4679cebb
commit
2458577209
1 changed files with 3 additions and 0 deletions
|
|
@ -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!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue