Skip to contentSkip to conversation

recipeparse.py: Checkout deplayerbranch before parsing

PATCH New Robert Yang 1 participant 1 message Sep 16, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 recipeparse.py: Checkout deplayerbranch before parsing

Fixed:

$ ./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.

---
 layerindex/recipeparse.py | 1 +
 1 file changed, 1 insertion(+)
layerindex/recipeparse.py +1 -0
index 62c08e91..0870e4f3 100644
@@ -118,6 +118,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))
                 continue
         deplayerdir = os.path.join(deprepodir, deplayerbranch.vcs_subdir)
+        utils.checkout_layer_branch(deplayerbranch, deprepodir, logger)
         utils.parse_layer_conf(deplayerdir, config_data_copy)
     config_data_copy.delVar('LAYERDIR')
     return config_data_copy
Signature · 1 line
2.17.1