summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/cooker.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index c0a7a2fd79..eac956aa97 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -253,6 +253,11 @@ class BBCooker:
253 return 253 return
254 if not event.pathname in self.configwatcher.bbwatchedfiles: 254 if not event.pathname in self.configwatcher.bbwatchedfiles:
255 return 255 return
256 if "IN_ISDIR" in event.maskname:
257 if "IN_CREATE" in event.maskname:
258 self.add_filewatch([[event.pathname]], watcher=self.configwatcher, dirs=True)
259 elif "IN_DELETE" in event.maskname and event.pathname in self.watcher.bbseen:
260 self.configwatcher.bbseen.remove(event.pathname)
256 if not event.pathname in self.inotify_modified_files: 261 if not event.pathname in self.inotify_modified_files:
257 self.inotify_modified_files.append(event.pathname) 262 self.inotify_modified_files.append(event.pathname)
258 self.baseconfig_valid = False 263 self.baseconfig_valid = False
@@ -266,6 +271,11 @@ class BBCooker:
266 if event.pathname.endswith("bitbake-cookerdaemon.log") \ 271 if event.pathname.endswith("bitbake-cookerdaemon.log") \
267 or event.pathname.endswith("bitbake.lock"): 272 or event.pathname.endswith("bitbake.lock"):
268 return 273 return
274 if "IN_ISDIR" in event.maskname:
275 if "IN_CREATE" in event.maskname:
276 self.add_filewatch([[event.pathname]], dirs=True)
277 elif "IN_DELETE" in event.maskname and event.pathname in self.watcher.bbseen:
278 self.watcher.bbseen.remove(event.pathname)
269 if not event.pathname in self.inotify_modified_files: 279 if not event.pathname in self.inotify_modified_files:
270 self.inotify_modified_files.append(event.pathname) 280 self.inotify_modified_files.append(event.pathname)
271 self.parsecache_valid = False 281 self.parsecache_valid = False