Properly call get_pkgfiles

This commit is contained in:
Eric Torres 2019-01-28 11:01:28 -08:00
parent 7a482c1802
commit 7153d02bac

View File

@ -49,9 +49,9 @@ def del_pkgfiles(cachedir, pkgs):
syslog.debug(f"Cache directory: {cachedir}")
syslog.debug(f"Packages: {pkgs}")
# TODO separate list for sigfiles
for pkg in pkgs:
for pkgfile in pkgfiles.get_pkgfiles(directory=cachedir,
signatures=True):
for pkgfile in pkgfiles.get_pkgfiles(pkg, directory=cachedir):
pkgfile.unlink()
syslog.info(f"Removed {pkgfile}")