diff --git a/latexrun b/latexrun index 3fb2dec..ebbcc8d 100755 --- a/latexrun +++ b/latexrun @@ -1018,6 +1018,7 @@ class LaTeXCommit(Task): debug('commiting {} to {}', outname, commit) shutil.copy(outname, outname + '~') os.rename(outname + '~', commit) + os.utime(commit) except OSError as e: raise TaskError('error committing latex output: {}'.format(e)) from e self._input('file', outname)