keep .apk file ext when diffoscope'ing Binaries:

This commit is contained in:
Hans-Christoph Steiner 2017-07-15 20:15:30 +00:00
parent 2ecaf6ef8d
commit 67d98c5a36
2 changed files with 3 additions and 2 deletions

View file

@ -1158,7 +1158,7 @@ def main():
url = url.replace('%v', build.versionName)
url = url.replace('%c', str(build.versionCode))
logging.info("...retrieving " + url)
of = common.get_release_filename(app, build) + '.binary'
of = re.sub(r'.apk$', '.binary.apk', common.get_release_filename(app, build))
of = os.path.join(output_dir, of)
try:
net.download_file(url, local_filename=of)

View file

@ -19,6 +19,7 @@
import sys
import os
import re
import shutil
import glob
import hashlib
@ -128,7 +129,7 @@ def main():
# version if everything checks out.
# The binary should already have been retrieved during the build
# process.
srcapk = apkfile + ".binary"
srcapk = re.sub(r'.apk$', '.binary.apk', apkfile)
# Compare our unsigned one with the downloaded one...
compare_result = common.verify_apks(srcapk, apkfile, tmp_dir)