mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +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.":
|
if line == "+Inspection done.":
|
||||||
ret = None
|
ret = None
|
||||||
#
|
#
|
||||||
|
# remove the copied file
|
||||||
|
if rmcopy:
|
||||||
|
removeFiles( [ 'chkconfig.ltx' ] )
|
||||||
|
#
|
||||||
# currently, values in chhkconfig are only used to set
|
# currently, values in chhkconfig are only used to set
|
||||||
# \font_encoding
|
# \font_encoding
|
||||||
values = {}
|
values = {}
|
||||||
@ -1132,8 +1136,6 @@ def checkLatexConfig(check_config, bool_docbook):
|
|||||||
addToRC(r'\font_encoding "%s"' % values["chk_fontenc"])
|
addToRC(r'\font_encoding "%s"' % values["chk_fontenc"])
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
if rmcopy: # remove the copied file
|
|
||||||
removeFiles( [ 'chkconfig.ltx' ] )
|
|
||||||
# if configure successed, move textclass.lst.tmp to textclass.lst
|
# if configure successed, move textclass.lst.tmp to textclass.lst
|
||||||
# and packages.lst.tmp to packages.lst
|
# and packages.lst.tmp to packages.lst
|
||||||
if os.path.isfile('textclass.lst.tmp') and len(open('textclass.lst.tmp').read()) > 0 \
|
if os.path.isfile('textclass.lst.tmp') and len(open('textclass.lst.tmp').read()) > 0 \
|
||||||
|
Loading…
Reference in New Issue
Block a user