comparison rhodecode/lib/db_manage.py @ 1399:4134af931e91 beta

Added info about sys.exit cause
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 29 Jun 2011 01:47:59 +0200
parents 8eda822931c9
children b50348816a80
comparison
equal deleted inserted replaced
1398:6dee43453f58 1399:4134af931e91
345 #check write access 345 #check write access
346 if not os.access(path, os.W_OK) and path_ok: 346 if not os.access(path, os.W_OK) and path_ok:
347 path_ok = False 347 path_ok = False
348 log.error('No write permission to given path %s', path) 348 log.error('No write permission to given path %s', path)
349 349
350
350 if retries == 0: 351 if retries == 0:
351 sys.exit() 352 sys.exit('max retries reached')
352 if path_ok is False: 353 if path_ok is False:
353 retries -= 1 354 retries -= 1
354 return self.config_prompt(test_repo_path, retries) 355 return self.config_prompt(test_repo_path, retries)
355 356
356 return path 357 return path