Add the possibility to print when a package isn't going to be updated
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
81256bdd8a
commit
0e036348d0
1 changed files with 8 additions and 0 deletions
|
@ -357,6 +357,9 @@ class BugzillaProxy:
|
||||||
except xmlrpc.client.ProtocolError as e:
|
except xmlrpc.client.ProtocolError as e:
|
||||||
e.args = ('ProtocolError', e.errcode, e.errmsg)
|
e.args = ('ProtocolError', e.errcode, e.errmsg)
|
||||||
raise
|
raise
|
||||||
|
else:
|
||||||
|
if self.config.get("print-no-change"):
|
||||||
|
print(f"[NOCHANGE] {package}/{self.config['products'][collection]}")
|
||||||
else:
|
else:
|
||||||
# Add component
|
# Add component
|
||||||
data = {
|
data = {
|
||||||
|
@ -559,6 +562,9 @@ class DistgitBugzillaSync:
|
||||||
'--print-fas-names', action='store_true', default=False,
|
'--print-fas-names', action='store_true', default=False,
|
||||||
help="Print FAS names rather than email addresses in output, useful when pasting into "
|
help="Print FAS names rather than email addresses in output, useful when pasting into "
|
||||||
"public fora")
|
"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()
|
self.args = parser.parse_args()
|
||||||
|
|
||||||
|
@ -729,6 +735,8 @@ class DistgitBugzillaSync:
|
||||||
if self.args.dryrun:
|
if self.args.dryrun:
|
||||||
self.env["dryrun"] = True
|
self.env["dryrun"] = True
|
||||||
|
|
||||||
|
self.env["print-no-change"] = self.args.print_no_change
|
||||||
|
|
||||||
# Non-fatal errors to alert people about
|
# Non-fatal errors to alert people about
|
||||||
errors = []
|
errors = []
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue