changeset 4397:c1b84cc1ca06

db_manage: don't ask for confirmation before using symlink - just warn Mostly a backout of bbaf0b86a1fe ... but we still use the normalized path.
author Mads Kiilerich <madski@unity3d.com>
date Wed, 30 Jul 2014 21:59:42 +0200
parents df33fcf96df2
children 6f87a5ae84b7
files kallithea/lib/db_manage.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/lib/db_manage.py	Wed Jul 30 01:51:32 2014 +0200
+++ b/kallithea/lib/db_manage.py	Wed Jul 30 21:59:42 2014 +0200
@@ -487,10 +487,7 @@
         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