mirror of
https://git.yoctoproject.org/poky
synced 2026-02-09 02:03:04 +01:00
bitbake: toaster: tables show all recipes in the layerdetails even duplicates
For some layers we have multiple recipes for the same software with differing versions. Change to showing all versions and add a version column to the table instead. (Bitbake rev: 8480e275e87275921d0dd54f2a7a445b1cd40203) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
aed6d2e8c0
commit
17fe16bbf4
@@ -403,8 +403,8 @@ class LayerRecipesTable(RecipesTable):
|
||||
|
||||
|
||||
def setup_queryset(self, *args, **kwargs):
|
||||
RecipesTable.setup_queryset(self, *args, **kwargs)
|
||||
self.queryset = self.queryset.filter(layer_version__pk=int(kwargs['layerid']))
|
||||
self.queryset = \
|
||||
Recipe.objects.filter(layer_version__pk=int(kwargs['layerid']))
|
||||
|
||||
self.static_context_extra['in_prj'] = ProjectLayer.objects.filter(Q(project=kwargs['pid']) & Q(layercommit=kwargs['layerid'])).count()
|
||||
|
||||
@@ -418,6 +418,8 @@ class LayerRecipesTable(RecipesTable):
|
||||
self.add_column(title="Description",
|
||||
field_name="get_description_or_summary")
|
||||
|
||||
self.add_column(title="Version",
|
||||
field_name="version")
|
||||
|
||||
build_recipe_template ='<button class="btn btn-block build-recipe-btn" data-recipe-name="{{data.name}}" {%if extra.in_prj == 0 %}disabled="disabled"{%endif%}>Build recipe</button>'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user