mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-02-23 03:30:10 -05:00
Really choose oldest file modification time in target files
This commit is contained in:
parent
61937c430d
commit
e1ab67af07
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user