From db0f2eec9fbe6a63a470055e9a7b7041ce57be37 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Aug 10 2018 15:54:47 +0000 Subject: spam-o-matic: Add optional flag to select which arches to spam about For the moment, DNF seems to be broken for some arches, so we want to select which ones to use until it's all working. Signed-off-by: Neal Gompa --- diff --git a/scripts/spam-o-matic b/scripts/spam-o-matic index e1a0a93..391c7e2 100755 --- a/scripts/spam-o-matic +++ b/scripts/spam-o-matic @@ -220,6 +220,9 @@ def get_unresolved_deps(dbo, arch): def doit(args): for arch in os.listdir(args.distdir): + if args.only_arches and (arch not in args.only_arches): + print("Skipping {} because we don't want to check it...".format(arch)) + continue dbo = generateDnfBaseObject(os.path.abspath(args.distdir), args.treename, arch) if not dbo: @@ -295,6 +298,8 @@ if __name__ == '__main__': help="Address to send mail from") parser.add_argument("--owneraddr", default=owner_template, help="Template for package owner addresses to send mail to") + parser.add_argument("--only-arches", nargs="+", default=None, + help="Use only these architectures") parser.add_argument("distdir", help="Target distribution directory to work from") args = parser.parse_args() doit(args)