Mercurial > kallithea
changeset 5957:104ec4bfe449
paster: don't retry in setup-db if repo path provided on command line is invalid
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Fri, 10 Jun 2016 01:19:58 +0200 |
parents | 70f8fba1f28a |
children | bf0a587334ea |
files | kallithea/lib/db_manage.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/db_manage.py Fri Jun 10 01:19:58 2016 +0200 +++ b/kallithea/lib/db_manage.py Fri Jun 10 01:19:58 2016 +0200 @@ -466,8 +466,10 @@ if retries == 0: sys.exit('max retries reached') if not path_ok: + if _path is not None: + sys.exit('Invalid repo path: %s' % _path) retries -= 1 - return self.config_prompt(test_repo_path, retries) + return self.config_prompt(test_repo_path, retries) # recursing!!! real_path = os.path.normpath(os.path.realpath(path))