diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/views.py')
-rwxr-xr-x[-rw-r--r--] | bitbake/lib/toaster/toastergui/views.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 4622810cf9..686cd5c8ce 100644..100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py | |||
@@ -1074,11 +1074,26 @@ def recipes(request, build_id): | |||
1074 | 1074 | ||
1075 | recipes = _build_page_range(Paginator(queryset, request.GET.get('count', 100)),request.GET.get('page', 1)) | 1075 | recipes = _build_page_range(Paginator(queryset, request.GET.get('count', 100)),request.GET.get('page', 1)) |
1076 | 1076 | ||
1077 | # prefetch the forward and reverse recipe dependencies | ||
1078 | deps = { }; revs = { } | ||
1079 | queryset_dependency=Recipe_Dependency.objects.filter(recipe__layer_version__build_id = build_id) | ||
1080 | for recipe in recipes: | ||
1081 | deplist = [ ] | ||
1082 | for recipe_dep in [x for x in queryset_dependency if x.recipe_id == recipe.id]: | ||
1083 | deplist.append(recipe_dep) | ||
1084 | deps[recipe.id] = deplist | ||
1085 | revlist = [ ] | ||
1086 | for recipe_dep in [x for x in queryset_dependency if x.depends_on_id == recipe.id]: | ||
1087 | revlist.append(recipe_dep) | ||
1088 | revs[recipe.id] = revlist | ||
1089 | |||
1077 | context = { | 1090 | context = { |
1078 | 'objectname': 'recipes', | 1091 | 'objectname': 'recipes', |
1079 | 'build': Build.objects.filter(pk=build_id)[0], | 1092 | 'build': Build.objects.filter(pk=build_id)[0], |
1080 | 'objects': recipes, | 1093 | 'objects': recipes, |
1081 | 'default_orderby' : 'name:+', | 1094 | 'default_orderby' : 'name:+', |
1095 | 'recipe_deps' : deps, | ||
1096 | 'recipe_revs' : revs, | ||
1082 | 'tablecols':[ | 1097 | 'tablecols':[ |
1083 | { | 1098 | { |
1084 | 'name':'Recipe', | 1099 | 'name':'Recipe', |