Log the total number of downloaded apks.

This commit is contained in:
voussoir 2021-11-08 11:38:56 -08:00
parent 1dbf081442
commit a745e1ad30
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -93,6 +93,8 @@ def fpk_argparse(args):
if packages == ['*']:
packages = ls_packages(pathclass.cwd())
download_count = 0
for package in packages:
package = normalize_package_name(package)
log.info('Checking %s.', package)
@ -120,11 +122,14 @@ def fpk_argparse(args):
try:
download_file(apk_url, this_dest)
download_count += 1
except Exception as exc:
log.error('%s was unable to download apk (%s).', package, exc)
return_status = 1
continue
log.info('Downloaded %d apks.', download_count)
return return_status
@operatornotify.main_decorator(subject='fdroidapk.py')