Silence all productimg related warnings
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
145c3adbef
commit
4734f9859a
@ -239,9 +239,9 @@ def main():
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
errors, warnings = pungi.checks.validate(conf)
|
errors, warnings = pungi.checks.validate(conf)
|
||||||
|
|
||||||
|
if not opts.quiet:
|
||||||
# TODO: workaround for config files containing skip_phase = productimg
|
# TODO: workaround for config files containing skip_phase = productimg
|
||||||
# Remove when all config files are up to date
|
# Remove when all config files are up to date
|
||||||
if not opts.quiet:
|
|
||||||
if "productimg" in opts.skip_phase or "productimg" in opts.just_phase:
|
if "productimg" in opts.skip_phase or "productimg" in opts.just_phase:
|
||||||
print(
|
print(
|
||||||
"WARNING: productimg phase has been removed, please remove it from "
|
"WARNING: productimg phase has been removed, please remove it from "
|
||||||
@ -253,9 +253,9 @@ def main():
|
|||||||
errors.remove(err)
|
errors.remove(err)
|
||||||
print("WARNING: %s" % err, file=sys.stderr)
|
print("WARNING: %s" % err, file=sys.stderr)
|
||||||
|
|
||||||
if not opts.quiet:
|
|
||||||
for warning in warnings:
|
for warning in warnings:
|
||||||
print(warning, file=sys.stderr)
|
print(warning, file=sys.stderr)
|
||||||
|
|
||||||
if errors:
|
if errors:
|
||||||
for error in errors:
|
for error in errors:
|
||||||
print(error, file=sys.stderr)
|
print(error, file=sys.stderr)
|
||||||
|
Loading…
Reference in New Issue
Block a user