diff mbox series

[2/3] recipeparse.py: Checkout deplayerbranch before parsing

Message ID 20221221035642.113852-2-liezhi.yang@windriver.com
State New
Headers show
Series [1/3] util.py: Fix for removing non-existed dependencies | expand

Commit Message

Robert Yang Dec. 21, 2022, 3:56 a.m. UTC
$ ./update.py -b hardknott,master

ERROR: Variable PREMIRRORS_append contains an operation using the old override syntax. Please convert this layer/metadata before attempting to use with a newer bitbake.

This is because it doesn't checkout master branch when parse it, this patch
fixed the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
 layerindex/recipeparse.py | 1 +
 1 file changed, 1 insertion(+)
diff mbox series


diff --git a/layerindex/recipeparse.py b/layerindex/recipeparse.py
index 6202745..6f2da0a 100644
--- a/layerindex/recipeparse.py
+++ b/layerindex/recipeparse.py
@@ -124,6 +124,7 @@  def setup_layer(config_data, fetchdir, layerdir, layer, layerbranch, logger):
                 logger.warning('Recommends %s of layer %s does not have branch record for branch %s - ignoring' % (dep.dependency.name, layer.name, layerbranch.branch.name))
         deplayerdir = os.path.join(deprepodir, deplayerbranch.vcs_subdir)
+        utils.checkout_layer_branch(deplayerbranch, deprepodir, logger)
         utils.parse_layer_conf(deplayerdir, config_data_copy)
     return config_data_copy