bitbake: toaster: views api Package info return both kinds of RDEPENDS

As we do with the popover snippet which shows dependencies inline in the
table also show dependencies which have both TYPE_TRDEPENDS and
TYPE_RDEPENDS.

Also remove obsolete comment

(Bitbake rev: d3b5f3b7ba4550e7cd03a37ca19ccd2fc0042b2d)

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>
This commit is contained in:
Michael Wood 2016-03-07 12:01:48 +00:00 committed by Richard Purdie
parent 9cda2ab8d5
commit 07ead9869a
1 changed files with 4 additions and 5 deletions

View File

@ -2577,9 +2577,6 @@ if True:
else: else:
all_current_packages = recipe.get_all_packages() all_current_packages = recipe.get_all_packages()
# TODO currently we ignore packgegroups as we don't have a
# way to deal with them yet.
# Dependencies for package which aren't satisfied by the # Dependencies for package which aren't satisfied by the
# current packages in the custom image recipe # current packages in the custom image recipe
deps = package.package_dependencies_source.annotate( deps = package.package_dependencies_source.annotate(
@ -2587,8 +2584,10 @@ if True:
pk=F('depends_on__pk'), pk=F('depends_on__pk'),
size=F('depends_on__size'), size=F('depends_on__size'),
).values("name", "pk", "size").filter( ).values("name", "pk", "size").filter(
~Q(pk__in=all_current_packages) & # There are two depends types we don't know why
Q(dep_type=Package_Dependency.TYPE_TRDEPENDS) (Q(dep_type=Package_Dependency.TYPE_TRDEPENDS) |
Q(dep_type=Package_Dependency.TYPE_RDEPENDS)) &
~Q(pk__in=all_current_packages)
) )
# Reverse dependencies which are needed by packages that are # Reverse dependencies which are needed by packages that are