From 61845b7465f1d26d58ae9be9fae7d234b4ad2ba9 Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Thu, 6 Oct 2016 13:30:53 -0400 Subject: layerindexer: Add layer recommends support Parse layer.conf and add dependencies that are not required from LAYERRECOMMENDS_. Update the layerindex/template to support recommends. Uses bitbake parsing code & checks versions. Signed-off-by: Liam R. Howlett Added associated migration. Signed-off-by: Mark Hatle --- templates/layerindex/detail.html | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) (limited to 'templates/layerindex') diff --git a/templates/layerindex/detail.html b/templates/layerindex/detail.html index 4bd7ecf657..9d3ee05fa8 100644 --- a/templates/layerindex/detail.html +++ b/templates/layerindex/detail.html @@ -139,17 +139,27 @@
{% if layerbranch.dependencies_set.count > 0 %} -
-

Dependencies

-

The {{ layeritem.name }} layer depends upon:

- -
- {% endif %} - +
+ {% if layerbranch.get_required.count > 0 %} +

Dependencies

+

The {{ layeritem.name }} layer depends upon:

+ + {% endif %} + {% if layerbranch.get_recommends.count > 0 %} +

Recommends

+

The {{ layeritem.name }} layer recommends:

+ + {% endif %} +
+ {% endif %}
-- cgit 1.2.3-korg