From: Stephan Witt Date: Thu, 11 Apr 2024 16:30:29 +0000 (+0200) Subject: Improved copy operation for user directory contents of previous major releases X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=945a02e2e176e0f8fb9c599700c693032a01fa5d;hp=511f895c9854092ccc9846c8ee8edef7012d8434;p=lyx.git Improved copy operation for user directory contents of previous major releases - avoid copying of configure.log - avoid copying of chkconfig.ltx There is a report of a hang on first start of LyX with new major release. The removal of the chkconfig.ltx (leftover from early LyX versions) fixed the issue. --- diff --git a/lib/configure.py b/lib/configure.py index 80cc787230..df0251268a 100644 --- a/lib/configure.py +++ b/lib/configure.py @@ -157,8 +157,8 @@ def copy_tree(src, dst, preserve_symlinks=False, level=0): link_dest = os.readlink(src_name) os.symlink(link_dest, dst_name) outputs.append(dst_name) - elif level == 0 and name == 'cache': - logger.info("Skip cache %s", src_name) + elif level == 0 and name in [ 'cache', 'configure.log', 'chkconfig.ltx' ]: + logger.info("Skip copy of %s", src_name) elif os.path.isdir(src_name): outputs.extend( copy_tree(src_name, dst_name, preserve_symlinks, level=(level + 1)))