summaryrefslogtreecommitdiffstats
path: root/scripts/yocto-check-layer
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2019-02-12 18:16:42 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-14 11:20:55 +0000
commit5501f12ef605a874479a050c4a391f9610a1cebf (patch)
tree0e726dba1cb72d77c66cc1765ebd3e223cd84b93 /scripts/yocto-check-layer
parenta6a2c8969239a7120959419a23b43dc4dcb61fd0 (diff)
downloadpoky-5501f12ef605a874479a050c4a391f9610a1cebf.tar.gz
checklayer: Avoid adding the layer if it is already present
* Rename add_layer() to add_layers() so that add_layer_dependencies() can re-use it. * Avoid adding the layer if it is already present [YOCTO #13148] (From OE-Core rev: b9cc18d83f55ff48c3d6e60c56359f6736d5a06a) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/yocto-check-layer')
-rwxr-xr-xscripts/yocto-check-layer6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/yocto-check-layer b/scripts/yocto-check-layer
index 9b7e53679b..106c955251 100755
--- a/scripts/yocto-check-layer
+++ b/scripts/yocto-check-layer
@@ -22,7 +22,7 @@ import scriptpath
22scriptpath.add_oe_lib_path() 22scriptpath.add_oe_lib_path()
23scriptpath.add_bitbake_lib_path() 23scriptpath.add_bitbake_lib_path()
24 24
25from checklayer import LayerType, detect_layers, add_layer, add_layer_dependencies, get_signatures 25from checklayer import LayerType, detect_layers, add_layers, add_layer_dependencies, get_signatures
26from oeqa.utils.commands import get_bb_vars 26from oeqa.utils.commands import get_bb_vars
27 27
28PROGNAME = 'yocto-check-layer' 28PROGNAME = 'yocto-check-layer'
@@ -157,7 +157,7 @@ def main():
157 layers_tested = layers_tested + 1 157 layers_tested = layers_tested + 1
158 continue 158 continue
159 159
160 if any(map(lambda additional_layer: not add_layer(bblayersconf, additional_layer, dep_layers, logger), 160 if any(map(lambda additional_layer: not add_layers(bblayersconf, [additional_layer], logger),
161 additional_layers)): 161 additional_layers)):
162 logger.info('Skipping %s due to missing additional layers.' % layer['name']) 162 logger.info('Skipping %s due to missing additional layers.' % layer['name'])
163 results[layer['name']] = None 163 results[layer['name']] = None
@@ -179,7 +179,7 @@ def main():
179 continue 179 continue
180 td['machines'] = args.machines 180 td['machines'] = args.machines
181 181
182 if not add_layer(bblayersconf, layer, dep_layers, logger): 182 if not add_layers(bblayersconf, [layer], logger):
183 logger.info('Skipping %s ???.' % layer['name']) 183 logger.info('Skipping %s ???.' % layer['name'])
184 results[layer['name']] = None 184 results[layer['name']] = None
185 results_status[layer['name']] = 'SKIPPED (Unknown)' 185 results_status[layer['name']] = 'SKIPPED (Unknown)'