Mercurial > public > src > rhodecode
diff rhodecode/lib/db_manage.py @ 2263:dc2584ba5fbc
merged beta into default branch
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 28 Mar 2012 19:54:16 +0200 |
parents | 82a88013a3fd 1477e048292e |
children | 533a126dc9ab |
line wrap: on
line diff
--- a/rhodecode/lib/db_manage.py Sat Mar 03 03:41:19 2012 +0200 +++ b/rhodecode/lib/db_manage.py Wed Mar 28 19:54:16 2012 +0200 @@ -376,7 +376,7 @@ if not self.tests and not test_repo_path: path = raw_input( - 'Enter a valid path to store repositories. ' + 'Enter a valid absolute path to store repositories. ' 'All repositories in that path will be added automatically:' ) else: @@ -388,8 +388,12 @@ path_ok = False log.error('Given path %s is not a valid directory' % path) + elif not os.path.isabs(path): + path_ok = False + log.error('Given path %s is not an absolute path' % path) + # check write access - if not os.access(path, os.W_OK) and path_ok: + elif not os.access(path, os.W_OK) and path_ok: path_ok = False log.error('No write permission to given path %s' % path)