[ARVADOS] updated: 366780077def317818759e999263577d8a9f5064
Git user
git at public.curoverse.com
Wed Mar 22 17:58:01 EDT 2017
Summary of changes:
sdk/python/arvados/cache.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
via 366780077def317818759e999263577d8a9f5064 (commit)
from e47fe8663303df51081a77646e061b11aa892df1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 366780077def317818759e999263577d8a9f5064
Author: Tom Clegg <tom at curoverse.com>
Date: Wed Mar 22 17:57:47 2017 -0400
10669: Only delete *.tmp when cleaning old cache files.
diff --git a/sdk/python/arvados/cache.py b/sdk/python/arvados/cache.py
index 7a557e5..08c19e4 100644
--- a/sdk/python/arvados/cache.py
+++ b/sdk/python/arvados/cache.py
@@ -18,7 +18,7 @@ class SafeHTTPCache(object):
def _clean(self, threshold=0):
for ent in os.listdir(self._dir):
fnm = os.path.join(self._dir, ent)
- if os.path.isdir(fnm):
+ if os.path.isdir(fnm) or not fnm.endswith('.tmp'):
continue
stat = os.lstat(fnm)
if stat.st_mtime < threshold:
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list