From a651156b71a3c8b9e31deea3cd5afd6aba443845 Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Sat, 16 Oct 2010 12:32:21 +0200 Subject: [PATCH] - don't print set value if --no-echo is used --- osc/commandline.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 843c64f5..951c4efe 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -6033,7 +6033,11 @@ Please submit there instead, or use --nodevelproject to force direct submission. elif newval is None: print '\'%s\': \'%s\' is not set' % (section, opt) else: - print '\'%s\': \'%s\' is set to \'%s\'' % (section, opt, newval) + if opts.no_echo: + # supress value + print '\'%s\': set \'%s\'' % (section, opt) + else: + print '\'%s\': \'%s\' is set to \'%s\'' % (section, opt, newval) def do_revert(self, subcmd, opts, *files): """${cmd_name}: restore original wc file