mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
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.
(cherry picked from commit 945a02e2e1
)
This commit is contained in:
parent
8c0e81db9a
commit
5cc72815cc
@ -157,8 +157,8 @@ def copy_tree(src, dst, preserve_symlinks=False, level=0):
|
|||||||
link_dest = os.readlink(src_name)
|
link_dest = os.readlink(src_name)
|
||||||
os.symlink(link_dest, dst_name)
|
os.symlink(link_dest, dst_name)
|
||||||
outputs.append(dst_name)
|
outputs.append(dst_name)
|
||||||
elif level == 0 and name == 'cache':
|
elif level == 0 and name in [ 'cache', 'configure.log', 'chkconfig.ltx' ]:
|
||||||
logger.info("Skip cache %s", src_name)
|
logger.info("Skip copy of %s", src_name)
|
||||||
elif os.path.isdir(src_name):
|
elif os.path.isdir(src_name):
|
||||||
outputs.extend(
|
outputs.extend(
|
||||||
copy_tree(src_name, dst_name, preserve_symlinks, level=(level + 1)))
|
copy_tree(src_name, dst_name, preserve_symlinks, level=(level + 1)))
|
||||||
|
Loading…
Reference in New Issue
Block a user