diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-01 01:30:57 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-01 01:30:57 -0500 |
commit | 9f2a036fa10b31cbdc96e985c5a3a1cd777da0c7 (patch) | |
tree | 49fc097a3a62e12b7c3296da55885ee91af81844 | |
parent | e1e7f385d0ae86e886fac7f2733f04d020e8feef (diff) | |
download | arch-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.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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() |