If layerbranch.updates_enabled is false, skip the update. Signed-off-by: Tim Orling <tim.orl...@konsulko.com> --- layerindex/update.py | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/layerindex/update.py b/layerindex/update.py index 7de9c0d..e7e5c63 100755 --- a/layerindex/update.py +++ b/layerindex/update.py @@ -375,6 +375,11 @@ def main(): if layerbranch_source: layerbranch.vcs_subdir = layerbranch_source.vcs_subdir + layerbranch_updates_enabled = LayerBranch.objects.filter(layer=layer, branch=branchobj.id, updates_enabled=True) + if not layerbranch_updates_enabled: + logger.info("Skipping update of layer %s branch %s - updates disabled" % (layer.name, branchname)) + continue + # Collect repo info urldir = layer.get_fetch_dir() repodir = os.path.join(fetchdir, urldir) -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#61357): https://lists.yoctoproject.org/g/yocto/message/61357 Mute This Topic: https://lists.yoctoproject.org/mt/102009662/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-