From fce42a28cc2c32d90c072ab8561190c8531f9acd Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Tue, 26 Apr 2016 17:18:07 +0100 Subject: bitbake: toaster: customrecipe Only show download icon or button if it's possible If the based on recipe has not yet been checked out/cloned we cannot generate the custom image recipe file that uses it. So disable/remove the option to download it. [YOCTO #9425] (Bitbake rev: f08651a954358e9c6ce4d69de285e4cd9e1408ae) Signed-off-by: Michael Wood Signed-off-by: Elliot Smith Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/tables.py | 4 +++- bitbake/lib/toaster/toastergui/templates/customrecipe.html | 13 ++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) (limited to 'bitbake') diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py index 2cc2f4eb7b..d375da434f 100644 --- a/bitbake/lib/toaster/toastergui/tables.py +++ b/bitbake/lib/toaster/toastergui/tables.py @@ -508,10 +508,12 @@ class CustomImagesTable(ToasterTable): recipe_file_template = ''' {{data.name}}_{{data.version}}.bb + {% if data.get_base_recipe_file %} - ''' + + {% endif %}''' self.add_column(title="Recipe file", static_data_name='recipe_file_download', diff --git a/bitbake/lib/toaster/toastergui/templates/customrecipe.html b/bitbake/lib/toaster/toastergui/templates/customrecipe.html index ea3c9c7324..aeb4466a20 100644 --- a/bitbake/lib/toaster/toastergui/templates/customrecipe.html +++ b/bitbake/lib/toaster/toastergui/templates/customrecipe.html @@ -4,6 +4,7 @@ {% load static %} {% block pagecontent %} +{% with recipe.get_base_recipe_file as base_recipe_file %} +{% endwith %}{# end base_recipe_file #} {% endblock %} -- cgit v1.2.3-54-g00ecf