summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2021-06-01 15:08:35 -0500
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2021-06-01 16:12:07 -0400
commitf16181a01ec02cb35d1093267ed42a6ced29ed64 (patch)
treeff528aa138abaa021049e1df4e32ec99394b49c9
parent6b0ccf4f81f9a0d28db7a3f7be5e4b40c1f2dfd2 (diff)
downloadb4-f16181a01ec02cb35d1093267ed42a6ced29ed64.tar.gz
Fix cache aging cleanup of threads
The cache aging for threads was not running resulting in failures to fetch new messages in threads. Fix the empty cache check which should be for no '.msgs' directories. Fixes: 4950093c0c3e ("Don't use mboxo for anything") Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org> Link: https://lore.kernel.org/r/20210601200835.940887-1-robh@kernel.org
-rw-r--r--b4/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index 17c569d..1897699 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -1882,7 +1882,7 @@ def get_cache_dir(appname: str = 'b4') -> str:
expmin = 600
expage = time.time() - expmin
for entry in os.listdir(cachedir):
- if entry.find('.mbx') <= 0 and entry.find('.lookup') <= 0 and entry.find('.msgs'):
+ if entry.find('.mbx') <= 0 and entry.find('.lookup') <= 0 and entry.find('.msgs') <= 0:
continue
fullpath = os.path.join(cachedir, entry)
st = os.stat(fullpath)