Changeset - c1b84cc1ca06
[Not reviewed]
default
0 1 0
Mads Kiilerich - 11 years ago 2014-07-30 21:59:42
madski@unity3d.com
db_manage: don't ask for confirmation before using symlink - just warn

Mostly a backout of bbaf0b86a1fe ... but we still use the normalized path.
1 file changed with 1 insertions and 4 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/db_manage.py
Show inline comments
 
@@ -487,10 +487,7 @@ class DbManage(object):
 
        real_path = os.path.normpath(os.path.realpath(path))
 

	
 
        if real_path != os.path.normpath(path):
 
            if not ask_ok(('Path looks like a symlink, Kallithea will store '
 
                           'given path as %s ? [y/n]') % (real_path,)):
 
                log.error('Canceled by user')
 
                sys.exit(-1)
 
            log.warning('Using normalized path %s instead of %s' % (real_path, path))
 

	
 
        return real_path
 

	
0 comments (0 inline, 0 general)