Show More
@@ -115,7 +115,7 b' class DbManage(object):' | |||||
115 | msg = ('Found current database under version' |
|
115 | msg = ('Found current database under version' | |
116 | ' control with version %s' % curr_version) |
|
116 | ' control with version %s' % curr_version) | |
117 |
|
117 | |||
118 |
except (RuntimeError, DatabaseNotControlledError) |
|
118 | except (RuntimeError, DatabaseNotControlledError): | |
119 | curr_version = 1 |
|
119 | curr_version = 1 | |
120 | msg = ('Current database is not under version control. Setting' |
|
120 | msg = ('Current database is not under version control. Setting' | |
121 | ' as version %s' % curr_version) |
|
121 | ' as version %s' % curr_version) | |
@@ -340,15 +340,12 b' class DbManage(object):' | |||||
340 | #check proper dir |
|
340 | #check proper dir | |
341 | if not os.path.isdir(path): |
|
341 | if not os.path.isdir(path): | |
342 | path_ok = False |
|
342 | path_ok = False | |
343 |
log.error(' |
|
343 | log.error('Given path %s is not a valid directory', path) | |
344 | path, retries) |
|
|||
345 |
|
344 | |||
346 | #check write access |
|
345 | #check write access | |
347 | if not os.access(path, os.W_OK): |
|
346 | if not os.access(path, os.W_OK) and path_ok: | |
348 | path_ok = False |
|
347 | path_ok = False | |
349 |
|
348 | log.error('No write permission to given path %s', path) | ||
350 | log.error('No write permission to given path: %s [%s/3]', |
|
|||
351 | path, retries) |
|
|||
352 |
|
349 | |||
353 | if retries == 0: |
|
350 | if retries == 0: | |
354 | sys.exit() |
|
351 | sys.exit() |
General Comments 0
You need to be logged in to leave comments.
Login now