]> git.lyx.org Git - features.git/commitdiff
configure.py: Replace 'ltx' by 'log' case insensitively
authorVincent van Ravesteijn <vfr@lyx.org>
Thu, 3 May 2012 13:11:10 +0000 (15:11 +0200)
committerVincent van Ravesteijn <vfr@lyx.org>
Sun, 6 May 2012 15:23:18 +0000 (17:23 +0200)
On windows the temporary filename consists of uppercase characters. This
causes that the extension does not get replaced, and the logfile is left
behind.

Checking the extension case insensitively will correctly remove the
logfile.

(cherry picked from commit a02bfeebc534925734821e8921bac07c67af6d39)

lib/configure.py
status.20x

index cfeab936a265d9139b4fb4f9b18c23bbd3c3a29a..b7ba8440f2f3d53274dcc6f18da41f0497f1c873 100644 (file)
@@ -124,7 +124,7 @@ def checkTeXPaths():
                 inpname = tmpfname.replace('\\', '/')
         else:
             inpname = cmdOutput('cygpath -m ' + tmpfname)
-        logname = os.path.basename(inpname.replace('.ltx', '.log'))
+        logname = os.path.basename(re.sub("(?i).ltx", ".log", inpname))
         inpname = inpname.replace('~', '\\string~')
         os.write(fd, r'\relax')
         os.close(fd)
index 8ba9de253941ed11e8c7ac40da2d227e621ed9c4..93ffb8ffef47ebcd6425523dd46b339eea636d4d 100644 (file)
@@ -212,3 +212,6 @@ What's new
 
 - Included the qt gif plugin in the Windows installer. This
   enables the busy icon in the status bar.
+
+- Remove a temporary log file from the user directory after reconfigure.
+