[cwctl] upgrade: do delete the static data dir if verbosity is 0 (closes #17069749)
--- a/cubicweb/web/webctl.py Fri Jul 28 08:35:01 2017 +0000
+++ b/cubicweb/web/webctl.py Tue Apr 04 10:50:49 2017 +0200
@@ -76,7 +76,7 @@
if not dest:
dest = osp.join(config.appdatahome, 'data')
if osp.exists(dest):
- if (not ask_clean or
+ if config.verbosity and (not ask_clean or
not (config.verbosity and
ASK.confirm('Remove existing data directory %s?' % dest))):
raise ExecutionError('Directory %s already exists. '