# HG changeset patch # User Mads Kiilerich # Date 2014-07-30 21:59:42 # Node ID c1b84cc1ca066d80d7ab0bebe329ae35f23e2cb9 # Parent df33fcf96df2cab5626c52534f6b462d8973367e db_manage: don't ask for confirmation before using symlink - just warn Mostly a backout of bbaf0b86a1fe ... but we still use the normalized path. diff --git a/kallithea/lib/db_manage.py b/kallithea/lib/db_manage.py --- a/kallithea/lib/db_manage.py +++ b/kallithea/lib/db_manage.py @@ -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