[cwctl] upgrade: do delete the static data dir if verbosity is 0 (closes #17069749) 3.25
authorDavid Douard <david.douard@logilab.fr>
Tue, 04 Apr 2017 10:50:49 +0200
branch3.25
changeset 12197 43022c1fa133
parent 12196 b6b87c36beed
child 12198 be4824a72bf5
[cwctl] upgrade: do delete the static data dir if verbosity is 0 (closes #17069749)
cubicweb/web/webctl.py
--- 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. '