From ea6270f3863d4318add1c8d6b9cd8ca28a61231b Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 21 Mar 2018 16:52:49 +1300 Subject: rrs: handle dependency field differences The old RRS branch had its own addition of dependency support, but in the mean time we added that to the layer index in the master branch using a different structure. Adapt the RRS recipe detail page to that structure. Signed-off-by: Paul Eggleton --- templates/rrs/recipedetail.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'templates/rrs') diff --git a/templates/rrs/recipedetail.html b/templates/rrs/recipedetail.html index 4f67700ec0..c0c812fa1e 100644 --- a/templates/rrs/recipedetail.html +++ b/templates/rrs/recipedetail.html @@ -156,13 +156,18 @@ {% endif %} - {% if recipe_depends %} + {% if recipe_depends or recipe.packageconfig_set %}
Depends
    {% for d in recipe_depends %}
  • {{ d }}
  • {% endfor %} + {% for pkc in recipe.packageconfig_set.all %} + {% for dep in pkc.get_deps_list %} +
  • {{ dep }} (optional)
  • + {% endfor %} + {% endfor %}
{% endif %} -- cgit 1.2.3-korg