# HG changeset patch # User David Douard # Date 1491295849 -7200 # Node ID 43022c1fa133e9f6caac07fde78dabbab029bf92 # Parent b6b87c36beed61eb13b82520ba0642c046bdc6b8 [cwctl] upgrade: do delete the static data dir if verbosity is 0 (closes #17069749) diff -r b6b87c36beed -r 43022c1fa133 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. '