[bitbake-devel] [master][zeus][warrior][PATCHv2 2/2] cooker: Ignore notifications for all .lock and .log files

Peter Kjellerstedt peter.kjellerstedt at axis.com
Tue Jan 7 22:08:58 UTC 2020


Previously bitbake-cookerdaemon.log and bitbake.lock were ignored, but
this can be generalized to all .lock and .log files.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt at axis.com>
---
 bitbake/lib/bb/cooker.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index b74affa7ec..a6c78990d0 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -267,8 +267,7 @@ class BBCooker:
             self.parsecache_valid = False
             bb.parse.clear_cache()
             return
-        if event.pathname.endswith("bitbake-cookerdaemon.log") \
-                or event.pathname.endswith("bitbake.lock"):
+        if event.pathname.endswith((".lock", ".log")):
             return
         if not event.pathname in self.inotify_modified_files:
             self.inotify_modified_files.append(event.pathname)
-- 
2.21.1



More information about the bitbake-devel mailing list