store actual file modification time instead of now()

This commit is contained in:
anatoly techtonik committed 2010-02-23 19:10:43 +02:00
1 parent 24a5097717
commit ef8ae809e6
1 file changed
+2 -2
+2 -2
View File
@@ -616,8 +616,8 @@ class BuildEnvironment:
self.note_citations_from(docname, doctree)
self.build_toc_from(docname, doctree)
# store time of reading, used to find outdated files
self.all_docs[docname] = time.time()
# store file modification time, for outdated files detection
self.all_docs[docname] = path.getmtime(src_path)
if app:
app.emit('doctree-read', doctree)