Author: sebb
Date: Thu Feb 12 21:20:57 2026
New Revision: 1931838
Log:
Allow for parallel cache updates
Modified:
comdev/reporter.apache.org/branches/tooling-project/scripts/urlutils.py
Modified:
comdev/reporter.apache.org/branches/tooling-project/scripts/urlutils.py
==============================================================================
--- comdev/reporter.apache.org/branches/tooling-project/scripts/urlutils.py
Thu Feb 12 18:17:10 2026 (r1931837)
+++ comdev/reporter.apache.org/branches/tooling-project/scripts/urlutils.py
Thu Feb 12 21:20:57 2026 (r1931838)
@@ -257,7 +257,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: