From 0e036348d0d421ebf6f6fa13134922760e2fc213 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Fri, 22 Nov 2019 16:05:44 +0100 Subject: [PATCH] Add the possibility to print when a package isn't going to be updated Signed-off-by: Pierre-Yves Chibon --- distgit_bugzilla_sync/script.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/distgit_bugzilla_sync/script.py b/distgit_bugzilla_sync/script.py index 145ddd9..001d659 100644 --- a/distgit_bugzilla_sync/script.py +++ b/distgit_bugzilla_sync/script.py @@ -357,6 +357,9 @@ class BugzillaProxy: except xmlrpc.client.ProtocolError as e: e.args = ('ProtocolError', e.errcode, e.errmsg) raise + else: + if self.config.get("print-no-change"): + print(f"[NOCHANGE] {package}/{self.config['products'][collection]}") else: # Add component data = { @@ -559,6 +562,9 @@ class DistgitBugzillaSync: '--print-fas-names', action='store_true', default=False, help="Print FAS names rather than email addresses in output, useful when pasting into " "public fora") + parser.add_argument( + '--print-no-change', action='store_true', default=False, + help="Print elements that are not being changed as they are checked") self.args = parser.parse_args() @@ -729,6 +735,8 @@ class DistgitBugzillaSync: if self.args.dryrun: self.env["dryrun"] = True + self.env["print-no-change"] = self.args.print_no_change + # Non-fatal errors to alert people about errors = []