mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
recipeparse: don't error out on missing layer recommends
If a LAYERRECOMMENDS relationship is not satisfied, we shouldn't be erroring out - it's a recommendation, not a hard dependency. Just show a warning and allow processing to continue. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
7effcc8cfb
commit
44a500e121
|
@ -102,7 +102,11 @@ def setup_layer(config_data, fetchdir, layerdir, layer, layerbranch):
|
|||
deprepodir = os.path.join(fetchdir, depurldir)
|
||||
deplayerbranch = dep.dependency.get_layerbranch(layerbranch.branch.name)
|
||||
if not deplayerbranch:
|
||||
if dep.required:
|
||||
raise RecipeParseError('Dependency %s of layer %s does not have branch record for branch %s' % (dep.dependency.name, layer.name, layerbranch.branch.name))
|
||||
else:
|
||||
logger.warning('Recommends %s of layer %s does not have branch record for branch %s - ignoring' % (dep.dependency.name, layer.name, layerbranch.branch.name))
|
||||
continue
|
||||
deplayerdir = os.path.join(deprepodir, deplayerbranch.vcs_subdir)
|
||||
utils.parse_layer_conf(deplayerdir, config_data_copy)
|
||||
config_data_copy.delVar('LAYERDIR')
|
||||
|
|
Loading…
Reference in New Issue
Block a user