mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-23 13:31:48 +01:00
- don't print set value if --no-echo is used
This commit is contained in:
parent
6d9b057898
commit
a651156b71
@ -6032,6 +6032,10 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
print '\'%s\': \'%s\' got removed' % (section, opt)
|
print '\'%s\': \'%s\' got removed' % (section, opt)
|
||||||
elif newval is None:
|
elif newval is None:
|
||||||
print '\'%s\': \'%s\' is not set' % (section, opt)
|
print '\'%s\': \'%s\' is not set' % (section, opt)
|
||||||
|
else:
|
||||||
|
if opts.no_echo:
|
||||||
|
# supress value
|
||||||
|
print '\'%s\': set \'%s\'' % (section, opt)
|
||||||
else:
|
else:
|
||||||
print '\'%s\': \'%s\' is set to \'%s\'' % (section, opt, newval)
|
print '\'%s\': \'%s\' is set to \'%s\'' % (section, opt, newval)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user