diff options
author | Dave Lerner <dave.lerner@windriver.com> | 2016-04-06 14:44:41 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-04-06 23:10:31 +0100 |
commit | 18cb7fe426d7ac726cf40002a507a57f6cf3ffed (patch) | |
tree | 8c09b9fd846b6bec2cb646e2bd1f412a23985e30 /bitbake/lib/toaster/toastergui/tables.py | |
parent | 7a309d964a86f3474eaab7df6d438ed797f935c0 (diff) | |
download | poky-18cb7fe426d7ac726cf40002a507a57f6cf3ffed.tar.gz |
bitbake: toaster: add rev dep column to image detail pages
Add a column to the custom image pages that shows the reverse
dependencies in a format matching the dependencies column:
- either blank or a button showing the count of reverse dependencies,
- when the button is clicked, a popover appears showing the list
of reverse dependencies, with each package's size, and the total
size of all of the reverse dependencies.
The implementation adds a packages table method to retreive the reverse
dependency total size, and adds a separate 'popover' html template. Both
of these changes follow the pattern for the dependencies column.
[YOCTO #9163]
(Bitbake rev: 2f978dccaa1ec82c7ad350bdc1cd9500000984eb)
Signed-off-by: Dave Lerner <dave.lerner@windriver.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.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py index 385d65895d..2cc2f4eb7b 100644 --- a/bitbake/lib/toaster/toastergui/tables.py +++ b/bitbake/lib/toaster/toastergui/tables.py | |||
@@ -725,6 +725,12 @@ class PackagesTable(ToasterTable): | |||
725 | static_data_template='\ | 725 | static_data_template='\ |
726 | {% include "snippets/pkg_dependencies_popover.html" %}') | 726 | {% include "snippets/pkg_dependencies_popover.html" %}') |
727 | 727 | ||
728 | self.add_column(title="Reverse dependencies", | ||
729 | static_data_name="reverse_dependencies", | ||
730 | static_data_template='\ | ||
731 | {% include "snippets/pkg_revdependencies_popover.html" %}', | ||
732 | hidden=True) | ||
733 | |||
728 | self.add_column(title="Recipe", | 734 | self.add_column(title="Recipe", |
729 | field_name="recipe__name", | 735 | field_name="recipe__name", |
730 | orderable=True, | 736 | orderable=True, |