diff options
author | Elliot Smith <elliot.smith@intel.com> | 2016-01-21 17:11:11 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-10 13:29:20 +0000 |
commit | 481dc1154709d9d1061de259d7133335c7497051 (patch) | |
tree | f18ef043a70a0d31c5e1589b5b44a57a688a0683 /bitbake/lib/toaster/toastergui/tables.py | |
parent | a757d397dbc39ca479321263bafcc129451f21f1 (diff) | |
download | poky-481dc1154709d9d1061de259d7133335c7497051.tar.gz |
bitbake: toaster: make locale packages uneditable in custom image page
When the packages associated with a custom image recipe are
shown in the customrecipe editing page, locale packages are
shown in the same way as all other packages. This gives the false
impression that these packages can be removed, when in fact
they are automatically added due to the IMAGE_LINGUAS build
variable.
Modify the customrecipe page so that locale packages cannot be
removed, and provide some help text explaining why.
[YOCTO #8927]
(Bitbake rev: b2208e53c00a67a7d0345e7378e6806b8ae40fb4)
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: brian avery <avery.brian@gmail.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.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py index b73f459b2c..b906718b66 100644 --- a/bitbake/lib/toaster/toastergui/tables.py +++ b/bitbake/lib/toaster/toastergui/tables.py | |||
@@ -765,12 +765,27 @@ class SelectPackagesTable(PackagesTable): | |||
765 | def setup_columns(self, *args, **kwargs): | 765 | def setup_columns(self, *args, **kwargs): |
766 | super(SelectPackagesTable, self).setup_columns(*args, **kwargs) | 766 | super(SelectPackagesTable, self).setup_columns(*args, **kwargs) |
767 | 767 | ||
768 | add_remove_template = ''' | ||
769 | {% if data.is_locale_package %} | ||
770 | <p class="text-center"> | ||
771 | <span class="muted">Locale package</span> | ||
772 | <i class="icon-question-sign get-help hover-help" title="" | ||
773 | data-original-title="This package is included in your image | ||
774 | because the locale is specified in the IMAGE_LINGUAS variable" | ||
775 | style="visibility: hidden;"> | ||
776 | </i> | ||
777 | </p> | ||
778 | {% else %} | ||
779 | {% include "pkg_add_rm_btn.html" %} | ||
780 | {% endif %} | ||
781 | ''' | ||
782 | |||
768 | self.add_column(title="Add | Remove", | 783 | self.add_column(title="Add | Remove", |
769 | hideable=False, | 784 | hideable=False, |
770 | help_text="Use the add and remove buttons to modify " | 785 | help_text="Use the add and remove buttons to modify " |
771 | "the package content of your custom image", | 786 | "the package content of your custom image", |
772 | static_data_name="add_rm_pkg_btn", | 787 | static_data_name="add_rm_pkg_btn", |
773 | static_data_template='{% include "pkg_add_rm_btn.html" %}', | 788 | static_data_template=add_remove_template, |
774 | filter_name='in_current_image_filter') | 789 | filter_name='in_current_image_filter') |
775 | 790 | ||
776 | def setup_filters(self, *args, **kwargs): | 791 | def setup_filters(self, *args, **kwargs): |