amprolla

devuan's apt repo merger
git clone git://parazyd.org/amprolla.git
Log | Files | Refs | README | LICENSE

commit dc84c9b0f2663f861b1987b5f05ba72451f24a26
parent a65bc1a1278ab494eabcfeaa57d7ae7d9b49cd84
Author: parazyd <parazyd@dyne.org>
Date:   Fri,  7 Jul 2017 00:38:42 +0200

log found banned packages

Diffstat:
Mlib/package.py | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/lib/package.py b/lib/package.py @@ -81,6 +81,8 @@ def package_banned(pkg, banned_pkgs): fields of the package. """ if pkg.get('Package') in banned_pkgs: + logtofile('bannedpackages.txt', '%s,%s\n' % (globalvars.suite, + pkg.get('Package'))) return True depends = parse_dependencies(pkg.get('Depends', '')) @@ -91,6 +93,9 @@ def package_banned(pkg, banned_pkgs): deps = set(depends).union(set(pre_depends)) + if bool(deps.intersection(banned_pkgs)): + logtofile('bannedpackages.txt', '%s,%s\n' % (globalvars.suite, + pkg.get('Package'))) return bool(deps.intersection(banned_pkgs))