1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-03 17:50:11 +02:00

Merge branch 'dexdump_nooutput' into 'master'

Silence dexdump output in build --verbose

See merge request fdroid/fdroidserver!1114
This commit is contained in:
Hans-Christoph Steiner 2022-05-03 17:57:43 +00:00
commit 1ae6e4e254

View File

@ -125,7 +125,10 @@ def get_embedded_classes(apkfile, depth=0):
elif class_regex.search(info.filename):
apk_zip.extract(info, tmp_dir)
run = common.SdkToolsPopen(["dexdump", '{}/{}'.format(tmp_dir, info.filename)])
run = common.SdkToolsPopen(
["dexdump", '{}/{}'.format(tmp_dir, info.filename)],
output=False,
)
classes = classes.union(set(re.findall(r'[A-Z]+((?:\w+\/)+\w+)', run.output)))
except zipfile.BadZipFile as ex:
return {_('Problem with ZIP file: %s, error %s') % (apkfile, ex)}