Log the total number of downloaded apks.
This commit is contained in:
parent
1dbf081442
commit
a745e1ad30
1 changed files with 5 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue