From 7153d02bacd102cf96f6684dafed8d22c7f7fcf6 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Mon, 28 Jan 2019 11:01:28 -0800 Subject: [PATCH] Properly call get_pkgfiles --- bin/delpkg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/delpkg b/bin/delpkg index 69f5155..88a3fa3 100644 --- a/bin/delpkg +++ b/bin/delpkg @@ -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}")