From 9f2a036fa10b31cbdc96e985c5a3a1cd777da0c7 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Fri, 1 Jun 2018 01:30:57 -0500 Subject: tester: add count of missing pkgs to summary --- tester.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tester.py b/tester.py index e1323aa..797216f 100644 --- a/tester.py +++ b/tester.py @@ -76,8 +76,12 @@ def main(): not_broken.append(arch) print("\033[1;32mNo issues\033[1;0m: {a}".format(a=", ".join(not_broken))) - print("\033[1;33mMissing user\033[1;0m: {a}".format(a=", ".join(broken_user))) - print("\033[1;31mMissing system\033[1;0m: {a}".format(a=", ".join(broken_sys))) + print("\033[1;33mMissing user\033[1;0m: {a}".format(a=", ".join( + ["{x} ({y})".format(x=arch, y=len(all_user_pkgs - pkgs[arch]['user'])) + for arch in broken_user]))) + print("\033[1;31mMissing system\033[1;0m: {a}".format(a=", ".join( + ["{x} ({y})".format(x=arch, y=len(all_sys_pkgs - pkgs[arch]['system'])) + for arch in broken_sys]))) if __name__ == "__main__": main() -- cgit v1.2.3-70-g09d2