summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-01 01:30:57 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-01 01:30:57 -0500
commit9f2a036fa10b31cbdc96e985c5a3a1cd777da0c7 (patch)
tree49fc097a3a62e12b7c3296da55885ee91af81844
parente1e7f385d0ae86e886fac7f2733f04d020e8feef (diff)
downloadarch-tester-9f2a036fa10b31cbdc96e985c5a3a1cd777da0c7.tar.gz
arch-tester-9f2a036fa10b31cbdc96e985c5a3a1cd777da0c7.tar.bz2
arch-tester-9f2a036fa10b31cbdc96e985c5a3a1cd777da0c7.tar.xz
arch-tester-9f2a036fa10b31cbdc96e985c5a3a1cd777da0c7.zip
tester: add count of missing pkgs to summary
-rw-r--r--tester.py8
1 files 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()