Merge branch 'fix-newer-target-time' of https://github.com/qykth-git/calibre

This commit is contained in:
Kovid Goyal 2023-10-25 08:17:46 +05:30
commit 2feaa3e854
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

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