mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 13:48:59 +00:00
Fix bug #7586 (Temporary file chkconfig.ltx in user directory not deleted if configure fails)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39567 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e28c6f4d95
commit
550f683049
@ -1151,6 +1151,10 @@ def checkLatexConfig(check_config, bool_docbook):
|
||||
if line == "+Inspection done.":
|
||||
ret = None
|
||||
#
|
||||
# remove the copied file
|
||||
if rmcopy:
|
||||
removeFiles( [ 'chkconfig.ltx' ] )
|
||||
#
|
||||
# currently, values in chhkconfig are only used to set
|
||||
# \font_encoding
|
||||
values = {}
|
||||
@ -1163,8 +1167,6 @@ def checkLatexConfig(check_config, bool_docbook):
|
||||
addToRC(r'\font_encoding "%s"' % values["chk_fontenc"])
|
||||
except:
|
||||
pass
|
||||
if rmcopy: # remove the copied file
|
||||
removeFiles( [ 'chkconfig.ltx' ] )
|
||||
# if configure successed, move textclass.lst.tmp to textclass.lst
|
||||
# and packages.lst.tmp to packages.lst
|
||||
if os.path.isfile('textclass.lst.tmp') and len(open('textclass.lst.tmp').read()) > 0 \
|
||||
|
@ -263,6 +263,9 @@ What's new
|
||||
|
||||
- On Windows, allow using again batch files as converters.
|
||||
|
||||
- Fix configuration failure due to missed deletion of a temporary file
|
||||
under certain circumstances (bug 7586).
|
||||
|
||||
|
||||
* ADVANCED FIND AND REPLACE
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user