summaryrefslogtreecommitdiffstats
path: root/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 16:59:53 +0100
commit2a599812a57cb0b964880a6a2b7548423497ea92 (patch)
treef89af4cf2732429e73267c06ddc67fee4e327158 /lib/bb/event.py
parent22c8600b885faf841795b872d82f68dfb644a26e (diff)
downloadbitbake-contrib-2a599812a57cb0b964880a6a2b7548423497ea92.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. Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/event.py')
-rw-r--r--lib/bb/event.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/bb/event.py b/lib/bb/event.py
index 7c49d464d..c7252dd33 100644
--- a/lib/bb/event.py
+++ b/lib/bb/event.py
@@ -390,6 +390,16 @@ class TargetsTreeGenerated(Event):
Event.__init__(self)
self._model = model
+class FilesMatchingFound(Event):
+ """
+ Event when a list of files matching the supplied pattern has
+ been generated
+ """
+ def __init__(self, pattern, matches):
+ Event.__init__(self)
+ self._pattern = pattern
+ self._matches = matches
+
class ConfigFilesFound(Event):
"""
Event when a list of appropriate config files has been generated