repo.py: add repo-remove logging

This commit is contained in:
JerryXiao 2019-04-03 20:53:52 +08:00
parent 6de893efa2
commit 92af54fba4
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA

View file

@ -297,7 +297,7 @@ def _remove(pkgnames, target_archs=[a for a in ARCHS if a != 'any']):
get_pkg_details_from_name(fpath.name).pkgname in pkgnames: get_pkg_details_from_name(fpath.name).pkgname in pkgnames:
remove_pkgs.append(fpath) remove_pkgs.append(fpath)
if remove_pkgs: if remove_pkgs:
repo_remove(remove_pkgs) logger.info("repo-remove: %s", repo_remove(remove_pkgs))
else: else:
logger.warning(f'Nothing to remove in {arch}') logger.warning(f'Nothing to remove in {arch}')
logger.info('finished remove') logger.info('finished remove')