]> git.lyx.org Git - features.git/commitdiff
Fix bug #7586 (Temporary file chkconfig.ltx in user directory not deleted if configur...
authorEnrico Forestieri <forenr@lyx.org>
Mon, 29 Aug 2011 22:23:17 +0000 (22:23 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 29 Aug 2011 22:23:17 +0000 (22:23 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39567 a592a061-630c-0410-9148-cb99ea01b6c8

lib/configure.py
status.20x

index 226a70d9b5db8a3b61f86a59f24fc1d55255457f..054cbd0793fdce7619000a5a98d3debc77ea19e1 100644 (file)
@@ -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 \
index 9dabce6d1ea7f4526c0bc93147f96a1bffdf2b94..30892d2532c809f75571bb0f984e01a7e359bfe6 100644 (file)
@@ -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