diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2016-10-27 01:50:18 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-11-04 12:50:29 +0000 |
commit | 91c3b34625fac2a0f093a4b46a46e89f813e7972 (patch) | |
tree | 0e9000de48c08ca0a497395cd121fcd42697ed78 /lib/bb/cooker.py | |
parent | 3570a8cf94354c8ab07513c304ebae33623fea33 (diff) | |
download | bitbake-contrib-91c3b34625fac2a0f093a4b46a46e89f813e7972.tar.gz |
lib/bb/cooker.py: fix for BBFILE_PATTERN = ""
There would be error when BBFILE_PATTERN = None:
BBFILE_PATTERN_foo not defined
This is the correct behaviour, but when the layer sets BBFILE_PATTERN = "",
it would match all the remaining recipes, and cause "No bb files matched BBFILE_PATTERN"
warnings for all the layers which behind it.
When a layer sets BBFILE_PATTERN = "" (for example, a layer only
provides git repos and source tarballs), now it means has no recipes.
This is different from BBFILE_PATTERN_IGNORE_EMPTY, the later one means
that it *may* not have any recipes.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/cooker.py')
-rw-r--r-- | lib/bb/cooker.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index 42831e277..c08af4593 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -1240,6 +1240,10 @@ class BBCooker: parselog.error("BBFILE_PATTERN_%s not defined" % c) errors = True continue + elif regex == "": + parselog.debug(1, "BBFILE_PATTERN_%s is empty" % c) + errors = False + continue try: cre = re.compile(regex) except re.error: |