Really choose oldest file modification time in target files

This commit is contained in:
YOKOTA Hiroshi 2023-08-14 00:01:11 +09:00
parent 61937c430d
commit e1ab67af07

View File

@ -47,7 +47,7 @@ def newer(targets, sources):
if not os.path.exists(f):
return True
ttimes = map(lambda x: os.stat(x).st_mtime, targets)
oldest_target = max(ttimes)
oldest_target = min(ttimes)
try:
stimes = map(lambda x: os.stat(x).st_mtime, sources)
newest_source = max(stimes)