From 4734f9859a39f000bc504892c1c113d58ff8c7a4 Mon Sep 17 00:00:00 2001 From: Lubomír Sedlář Date: Mar 03 2020 10:06:52 +0000 Subject: Silence all productimg related warnings Signed-off-by: Lubomír Sedlář --- diff --git a/pungi/scripts/pungi_koji.py b/pungi/scripts/pungi_koji.py index 3dc7358..f566da0 100644 --- a/pungi/scripts/pungi_koji.py +++ b/pungi/scripts/pungi_koji.py @@ -239,23 +239,23 @@ def main(): sys.exit(1) errors, warnings = pungi.checks.validate(conf) - # TODO: workaround for config files containing skip_phase = productimg - # Remove when all config files are up to date if not opts.quiet: + # TODO: workaround for config files containing skip_phase = productimg + # Remove when all config files are up to date if "productimg" in opts.skip_phase or "productimg" in opts.just_phase: print( "WARNING: productimg phase has been removed, please remove it from " "--skip-phase or --just-phase option", file=sys.stderr, ) - for err in errors[:]: - if "'productimg' is not one of" in err: - errors.remove(err) - print("WARNING: %s" % err, file=sys.stderr) + for err in errors[:]: + if "'productimg' is not one of" in err: + errors.remove(err) + print("WARNING: %s" % err, file=sys.stderr) - if not opts.quiet: for warning in warnings: print(warning, file=sys.stderr) + if errors: for error in errors: print(error, file=sys.stderr)