summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/event.py
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-06-30 23:02:52 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-01 17:17:35 +0100
commit6c36f4a6aa76dbbca4f8c0623955058db34bd1e5 (patch)
tree66aba473c08e3d195fc0cf8c2e86b9d06e805608 /bitbake/lib/bb/event.py
parent9fe29fd7db125d8f1295086b003d925c255303f4 (diff)
downloadpoky-6c36f4a6aa76dbbca4f8c0623955058db34bd1e5.tar.gz
cooker|command|event: add new command findFilesMatchingInDir
This command can be used to search each BBPATH for files in the passed directory which have a filename matching the supplied pattern. This is implemented for use from the GUI (to determine the available PACKAGE_CLASSES) but has been written so as to be generically useful and reusable. (Bitbake rev: 2a599812a57cb0b964880a6a2b7548423497ea92) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/event.py')
-rw-r--r--bitbake/lib/bb/event.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
index 7c49d464dd..c7252dd330 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -390,6 +390,16 @@ class TargetsTreeGenerated(Event):
390 Event.__init__(self) 390 Event.__init__(self)
391 self._model = model 391 self._model = model
392 392
393class FilesMatchingFound(Event):
394 """
395 Event when a list of files matching the supplied pattern has
396 been generated
397 """
398 def __init__(self, pattern, matches):
399 Event.__init__(self)
400 self._pattern = pattern
401 self._matches = matches
402
393class ConfigFilesFound(Event): 403class ConfigFilesFound(Event):
394 """ 404 """
395 Event when a list of appropriate config files has been generated 405 Event when a list of appropriate config files has been generated