# HG changeset patch # User Marcin Kuzminski # Date 2016-06-24 18:50:51 # Node ID 2b3a07614416d9aa9863612598c02f2f9214b5d0 # Parent e3a9bf52ff4f3b577c50abc3649122c19614bae9 paster: fix redundant question on writable dir. The question needs to be asked only when the dir is actually not writable. diff --git a/rhodecode/lib/db_manage.py b/rhodecode/lib/db_manage.py --- a/rhodecode/lib/db_manage.py +++ b/rhodecode/lib/db_manage.py @@ -478,9 +478,9 @@ class DbManage(object): elif not os.access(path, os.W_OK) and path_ok: log.warning('No write permission to given path %s' % (path,)) - q = ('Given path %s is not writeable, do you want to ' - 'continue with read only mode ? [y/n]' % (path,)) - if not self.ask_ok(q): + q = ('Given path %s is not writeable, do you want to ' + 'continue with read only mode ? [y/n]' % (path,)) + if not self.ask_ok(q): log.error('Canceled by user') sys.exit(-1)