mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 12:49:01 +02:00
![]() Some layers now have one branch with many supported LAYERSERIES_COMPAT. If this branch name does not match one of the stable releases, LayerBranches might not have been created. When actual_branch is set, it is only set in a LayerBranch object. We previously could not update (create) a stable branch with actual_branch except manually in the admin interface. Add --force-create option to be used in conjunction with --actual-branch (which already requires --branch) in the update.py script. This tells the script to ignore the fact that no layerbranch exists already. Add --actual-branch to update_layer.py so that we can create (and more importantly checkout) an actual_branch for the given stable --branch. Update utils.py to allow checking out of actual_branch when a LayerBranch does not yet exist. While we are at it, ensure that any Branch that is marked as no update will be skipped even with --force-create. The main reason that a Branch has updates disabled is because the bitbake or python syntax has changed enough to cause exceptions. This script can now be run with: ./layerindex/update.py \ --layer meta-weird-one \ --branch kirkstone \ --actual-branch=nonstandard \ --force-create Which will attempt to create a meta-weird-one:kirkstone layerbranch checked out at the 'nonstandard' branch from that layer's git repo. This allows layerindex admins to at least populate the database without tedious creation of layerbranches in the admin interface. Helps make the "branch mapping" actually work and be useful: [YOCTO #8008] Signed-off-by: Tim Orling <tim.orling@konsulko.com> |
||
---|---|---|
.. | ||
migrations | ||
static | ||
templatetags | ||
tools | ||
__init__.py | ||
admin.py | ||
auth_forms.py | ||
auth_views.py | ||
bulkchange.py | ||
context_processors.py | ||
forms.py | ||
layerconfparse.py | ||
middleware.py | ||
models.py | ||
querysethelper.py | ||
recipedesc.py | ||
recipeparse.py | ||
restperm.py | ||
restviews.py | ||
securityquestions.py | ||
tasks.py | ||
update_layer.py | ||
update.py | ||
urls_branch.py | ||
urls.py | ||
utils.py | ||
views.py |