diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index e965bcc440..3909dc09f7 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -122,11 +122,13 @@ class BBCooker: | |||
122 | self.configuration = configuration | 122 | self.configuration = configuration |
123 | 123 | ||
124 | self.configwatcher = pyinotify.WatchManager() | 124 | self.configwatcher = pyinotify.WatchManager() |
125 | self.configwatcher.bbseen = [] | ||
125 | self.confignotifier = pyinotify.Notifier(self.configwatcher, self.config_notifications) | 126 | self.confignotifier = pyinotify.Notifier(self.configwatcher, self.config_notifications) |
126 | self.watchmask = pyinotify.IN_CLOSE_WRITE | pyinotify.IN_CREATE | pyinotify.IN_DELETE | \ | 127 | self.watchmask = pyinotify.IN_CLOSE_WRITE | pyinotify.IN_CREATE | pyinotify.IN_DELETE | \ |
127 | pyinotify.IN_DELETE_SELF | pyinotify.IN_MODIFY | pyinotify.IN_MOVE_SELF | \ | 128 | pyinotify.IN_DELETE_SELF | pyinotify.IN_MODIFY | pyinotify.IN_MOVE_SELF | \ |
128 | pyinotify.IN_MOVED_FROM | pyinotify.IN_MOVED_TO | 129 | pyinotify.IN_MOVED_FROM | pyinotify.IN_MOVED_TO |
129 | self.watcher = pyinotify.WatchManager() | 130 | self.watcher = pyinotify.WatchManager() |
131 | self.watcher.bbseen = [] | ||
130 | self.notifier = pyinotify.Notifier(self.watcher, self.notifications) | 132 | self.notifier = pyinotify.Notifier(self.watcher, self.notifications) |
131 | 133 | ||
132 | 134 | ||
@@ -180,7 +182,7 @@ class BBCooker: | |||
180 | if not watcher: | 182 | if not watcher: |
181 | watcher = self.watcher | 183 | watcher = self.watcher |
182 | for i in deps: | 184 | for i in deps: |
183 | f = os.path.dirname(i[0]) | 185 | f = i[0] |
184 | if f in watcher.bbseen: | 186 | if f in watcher.bbseen: |
185 | continue | 187 | continue |
186 | watcher.bbseen.append(f) | 188 | watcher.bbseen.append(f) |
@@ -194,6 +196,7 @@ class BBCooker: | |||
194 | except pyinotify.WatchManagerError as e: | 196 | except pyinotify.WatchManagerError as e: |
195 | if 'ENOENT' in str(e): | 197 | if 'ENOENT' in str(e): |
196 | f = os.path.dirname(f) | 198 | f = os.path.dirname(f) |
199 | watcher.bbseen.append(f) | ||
197 | continue | 200 | continue |
198 | raise | 201 | raise |
199 | 202 | ||