mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +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/trunk@39562 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8e812f44af
commit
2ed034ea22
@ -1120,6 +1120,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 = {}
|
||||
@ -1132,8 +1136,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 \
|
||||
|
Loading…
Reference in New Issue
Block a user