mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
black format and use returncode directly without != 0
This commit is contained in:
parent
9a8d80ee6b
commit
a011b34b97
1 changed files with 6 additions and 4 deletions
|
@ -3942,11 +3942,13 @@ def compare_apks(apk1, apk2, tmp_dir, log_dir=None):
|
|||
f.extractall(path=os.path.join(apk2dir, 'content'))
|
||||
|
||||
if set_command_in_config('apktool'):
|
||||
if subprocess.call([config['apktool'], 'd', absapk1, '--output', 'apktool'],
|
||||
cwd=apk1dir) != 0:
|
||||
if subprocess.call(
|
||||
[config['apktool'], 'd', absapk1, '--output', 'apktool'], cwd=apk1dir
|
||||
):
|
||||
return "Failed to run apktool " + apk1
|
||||
if subprocess.call([config['apktool'], 'd', absapk2, '--output', 'apktool'],
|
||||
cwd=apk2dir) != 0:
|
||||
if subprocess.call(
|
||||
[config['apktool'], 'd', absapk2, '--output', 'apktool'], cwd=apk2dir
|
||||
):
|
||||
return "Failed to run apktool " + apk2
|
||||
|
||||
p = FDroidPopen(['diff', '-r', apk1dir, apk2dir], output=False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue