paster: fix redundant question on writable dir. The question needs to
be asked only when the dir is actually not writable.
This commit is contained in:
parent
8667353668
commit
cf352c6625
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue