mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
bitbake: toastergui: fix project page layer branch names
Change inconsistent branch name usage in project page to the uniquely defined get_vcs_reference() [YOCTO #7381] (Bitbake rev: bc838a6c075c4d7e24f7820088f485bbfdea5a32) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
cffc2081cb
commit
e5590bc381
@@ -271,7 +271,7 @@ vim: expandtab tabstop=2
|
|||||||
<div id="layer-container" class="well well-transparent span4">
|
<div id="layer-container" class="well well-transparent span4">
|
||||||
<h3>
|
<h3>
|
||||||
Layers <span class="muted counter">({[layers.length]})</span>
|
Layers <span class="muted counter">({[layers.length]})</span>
|
||||||
<i class="icon-question-sign get-help heading-help" title="OpenEmbedded organises metadata into modules called 'layers'. Layers allow you to isolate different types of customizations from each other. <a href='http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#understanding-and-creating-layers' target='_blank'>More on layers</a>"></i>
|
<i class="icon-question-sign get-help heading-help" title="Bitbake reads metadata files from modules called 'layers'. Layers allow you to isolate different types of customizations from each other. <a href='http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#understanding-and-creating-layers' target='_blank'>More on layers</a>"></i>
|
||||||
</h3>
|
</h3>
|
||||||
<div class="alert" ng-if="!layers.length">
|
<div class="alert" ng-if="!layers.length">
|
||||||
<b>You need to add some layers </b>
|
<b>You need to add some layers </b>
|
||||||
|
|||||||
@@ -2135,7 +2135,7 @@ if toastermain.settings.MANAGED:
|
|||||||
"url": x.layercommit.layer.layer_index_url,
|
"url": x.layercommit.layer.layer_index_url,
|
||||||
"layerdetailurl": reverse("layerdetails", args=(x.layercommit.pk,)),
|
"layerdetailurl": reverse("layerdetails", args=(x.layercommit.pk,)),
|
||||||
# This branch name is actually the release
|
# This branch name is actually the release
|
||||||
"branch" : { "name" : x.layercommit.commit, "layersource" : x.layercommit.up_branch.layer_source.name if x.layercommit.up_branch != None else None}},
|
"branch" : { "name" : x.layercommit.get_vcs_reference(), "layersource" : x.layercommit.up_branch.layer_source.name if x.layercommit.up_branch != None else None}},
|
||||||
prj.projectlayer_set.all().order_by("id")),
|
prj.projectlayer_set.all().order_by("id")),
|
||||||
"targets" : map(lambda x: {"target" : x.target, "task" : x.task, "pk": x.pk}, prj.projecttarget_set.all()),
|
"targets" : map(lambda x: {"target" : x.target, "task" : x.task, "pk": x.pk}, prj.projecttarget_set.all()),
|
||||||
"freqtargets": freqtargets,
|
"freqtargets": freqtargets,
|
||||||
@@ -2257,7 +2257,7 @@ if toastermain.settings.MANAGED:
|
|||||||
# return all project settings
|
# return all project settings
|
||||||
return HttpResponse(jsonfilter( {
|
return HttpResponse(jsonfilter( {
|
||||||
"error": "ok",
|
"error": "ok",
|
||||||
"layers" : map(lambda x: {"id": x.layercommit.pk, "orderid" : x.pk, "name" : x.layercommit.layer.name, "giturl" : x.layercommit.layer.vcs_url, "url": x.layercommit.layer.layer_index_url, "layerdetailurl": reverse("layerdetails", args=(x.layercommit.layer.pk,)), "branch" : { "name" : x.layercommit.up_branch.name, "layersource" : x.layercommit.up_branch.layer_source.name}}, prj.projectlayer_set.all().select_related("layer").order_by("id")),
|
"layers" : map(lambda x: {"id": x.layercommit.pk, "orderid" : x.pk, "name" : x.layercommit.layer.name, "giturl" : x.layercommit.layer.vcs_url, "url": x.layercommit.layer.layer_index_url, "layerdetailurl": reverse("layerdetails", args=(x.layercommit.layer.pk,)), "branch" : { "name" : x.layercommit.get_vcs_reference(), "layersource" : x.layercommit.up_branch.layer_source.name}}, prj.projectlayer_set.all().select_related("layer").order_by("id")),
|
||||||
"builds" : _project_recent_build_list(prj),
|
"builds" : _project_recent_build_list(prj),
|
||||||
"variables": map(lambda x: (x.name, x.value), prj.projectvariable_set.all()),
|
"variables": map(lambda x: (x.name, x.value), prj.projectvariable_set.all()),
|
||||||
"machine": {"name": prj.projectvariable_set.get(name="MACHINE").value},
|
"machine": {"name": prj.projectvariable_set.get(name="MACHINE").value},
|
||||||
|
|||||||
Reference in New Issue
Block a user