Author: sebb
Date: Thu Feb 12 23:11:09 2026
New Revision: 1931843
Log:
Allow for parallel updates
Modified:
comdev/projects.apache.org/trunk/scripts/cronjobs/urlutils.py
Modified: comdev/projects.apache.org/trunk/scripts/cronjobs/urlutils.py
==============================================================================
--- comdev/projects.apache.org/trunk/scripts/cronjobs/urlutils.py Thu Feb
12 23:10:19 2026 (r1931842)
+++ comdev/projects.apache.org/trunk/scripts/cronjobs/urlutils.py Thu Feb
12 23:11:09 2026 (r1931843)
@@ -255,7 +255,10 @@ class UrlCache(object):
shutil.copyfileobj(response, f)
if not useFileModTime:
# store the last mod time as the time of the file
- touchFile(tmpFile, lastModT)
+ try:
+ touchFile(tmpFile, lastModT)
+ except FileNotFoundError: # this can happen if another
thread refreshes the file
+ pass
os.rename(tmpFile, target) # seems to preserve file mod time
if lastMod:
if fileTime > 0: