[webctl] do not ask questions if verbosity is at 0
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Fri, 28 Nov 2014 11:51:36 +0100
changeset 10070 5244592cb225
parent 10069 e2a760b9fb93
child 10071 4bc099f2a089
[webctl] do not ask questions if verbosity is at 0 Closes #4641960.
web/webctl.py
--- a/web/webctl.py	Fri Nov 28 10:16:37 2014 +0100
+++ b/web/webctl.py	Fri Nov 28 11:51:36 2014 +0100
@@ -68,7 +68,8 @@
             dest = osp.join(config.appdatahome, 'data')
         if osp.exists(dest):
             if (not ask_clean or
-                not ASK.confirm('Remove existing data directory %s?' % dest)):
+                not (config.verbosity and
+                     ASK.confirm('Remove existing data directory %s?' % dest))):
                 raise ExecutionError('Directory %s already exists. '
                                      'Remove it first.' % dest)
             rmtree(dest)