From 362b71a07c714ebe03df40beecaca99dc9447e0c Mon Sep 17 00:00:00 2001 From: Dave Lerner Date: Wed, 26 Mar 2014 15:49:43 -0500 Subject: bitbake: toaster: unbuilt package dependency formats [YOCTO 6057] For a package shown on the package build dependency page, the dependent packages may be unbuilt packages, as indicated with the dependent package's size set to -1. This fix changes the build template to use the same formatting functions for unbuilt dependent packages as the include package templates use for unbuilt dependent packages. (Bitbake rev: b095ab30a827a50f66a06ac9170d33fae2670736) Signed-off-by: Dave Lerner Signed-off-by: Richard Purdie --- .../templates/package_built_dependencies.html | 75 ++++++++++------------ 1 file changed, 33 insertions(+), 42 deletions(-) (limited to 'bitbake') diff --git a/bitbake/lib/toaster/toastergui/templates/package_built_dependencies.html b/bitbake/lib/toaster/toastergui/templates/package_built_dependencies.html index a2011d6fb6..8613f1e732 100644 --- a/bitbake/lib/toaster/toastergui/templates/package_built_dependencies.html +++ b/bitbake/lib/toaster/toastergui/templates/package_built_dependencies.html @@ -36,24 +36,21 @@ {% for runtime_dep in runtime_deps %} - {% ifequal runtime_dep.version '' %} - - {{runtime_dep.name}} - {{runtime_dep.version}} - - - + + {% if runtime_dep.size != -1 %} + + + {{runtime_dep.name}} + + {% else %} - - - - {{runtime_dep.name}} - - - {{runtime_dep.version}} - {{runtime_dep.size|filtered_filesizeformat}} - - {% endifequal %} + + {{runtime_dep.name|format_vpackage_namehelp}} + + {% endif %} + {{runtime_dep.version}} + {{runtime_dep.size|filtered_filesizeformat}} + {% endfor %} @@ -74,31 +71,25 @@ {% for other_dep in other_deps %} - {% ifequal other_dep.version '' %} - - {{other_dep.name}} - {{other_dep.version}} - - - {{other_dep.dep_type_display}} - - - - {% else %} - - - - {{other_dep.name}} - - - {{other_dep.version}} - {{other_dep.size|filtered_filesizeformat}} - - {{other_dep.dep_type_display}} - - - - {% endifequal %} + + {% if other_dep.size != -1 %} + + + {{other_dep.name}} + + + {% else %} + + {{other_dep.name|format_vpackage_namehelp}} + + {% endif %} + {{other_dep.version}} + {{other_dep.size|filtered_filesizeformat}} + + {{other_dep.dep_type_display}} + + + {% endfor %} -- cgit v1.2.3-54-g00ecf