summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/tables.py
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-04-26 17:18:07 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-06 10:12:16 +0100
commitfce42a28cc2c32d90c072ab8561190c8531f9acd (patch)
tree77ad9cf45ec01749bc53b97344f6a77e663e1db4 /bitbake/lib/toaster/toastergui/tables.py
parentd3b5b0b4bb517db077d06d6339bb4b2987c031bf (diff)
downloadpoky-fce42a28cc2c32d90c072ab8561190c8531f9acd.tar.gz
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 <michael.g.wood@intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/tables.py')
-rw-r--r--bitbake/lib/toaster/toastergui/tables.py4
1 files changed, 3 insertions, 1 deletions
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):
508 508
509 recipe_file_template = ''' 509 recipe_file_template = '''
510 <code>{{data.name}}_{{data.version}}.bb</code> 510 <code>{{data.name}}_{{data.version}}.bb</code>
511 {% if data.get_base_recipe_file %}
511 <a href="{% url 'customrecipedownload' extra.pid data.pk %}"> 512 <a href="{% url 'customrecipedownload' extra.pid data.pk %}">
512 <i class="icon-download-alt" data-original-title="Download recipe 513 <i class="icon-download-alt" data-original-title="Download recipe
513 file"></i> 514 file"></i>
514 </a>''' 515 </a>
516 {% endif %}'''
515 517
516 self.add_column(title="Recipe file", 518 self.add_column(title="Recipe file",
517 static_data_name='recipe_file_download', 519 static_data_name='recipe_file_download',