[bitbake-devel,1/1] cooker: Fix bbfile_config_priorities when BBFILE_PATTERN is empty

Submitted by Robert Yang on March 21, 2019, 7:20 a.m. | Patch ID: 159707

Details

Message ID 61fb9e18afc98ecbb558ae3c7fa036938e21aab5.1553152790.git.liezhi.yang@windriver.com
State New
Headers show

Commit Message

Robert Yang March 21, 2019, 7:20 a.m.
The layer was not in bbfile_config_priorities when BBFILE_PATTERN is empty,
this caused "bitbake-layers show-layers" can't show these layers, this was
incorrect since these layer did exist. Add these layer to
bbfile_config_priorities can fix the problem.

Fixed:
Add BBFILE_PATTERN_core = "" in oe-core/meta/conf/layer.conf
$ bitbake show-layers | grep oe-core

There was nothing, now the layer is shown

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 bitbake/lib/bb/cooker.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 1982e88..9ccaa79 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1216,8 +1216,8 @@  class BBCooker:
                     continue
                 elif regex == "":
                     parselog.debug(1, "BBFILE_PATTERN_%s is empty" % c)
+                    cre = re.compile('^NULL$')
                     errors = False
-                    continue
                 else:
                     try:
                         cre = re.compile(regex)