Merge pull request #2414 from jfbaillette/patch-1

Resolve mtime truncation. Fixes #2412
This commit is contained in:
Justin Mayer 2018-10-31 10:25:13 +01:00 committed by GitHub
commit cdc999dd28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -820,7 +820,7 @@ class StaticGenerator(Generator):
save_as = os.path.join(self.output_path, staticfile.save_as)
s_mtime = os.path.getmtime(source_path)
d_mtime = os.path.getmtime(save_as)
return s_mtime > d_mtime
return s_mtime - d_mtime > 0.000001
def _link_or_copy_staticfile(self, sc):
if self.settings['STATIC_CREATE_LINKS']: