summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-03-07 12:01:48 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-07 17:23:03 +0000
commit07ead9869a9a7f9a006bf1ab135a3f6d5ba52a2d (patch)
tree66f9b6775fc4234a6836c1803640a2500639c497 /bitbake
parent9cda2ab8d52a8ea9131c81f0ea48c9596d4c72af (diff)
downloadpoky-07ead9869a9a7f9a006bf1ab135a3f6d5ba52a2d.tar.gz
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>
Diffstat (limited to 'bitbake')
-rwxr-xr-xbitbake/lib/toaster/toastergui/views.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index f3b8d3cd59..bd118920ab 100755
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -2577,9 +2577,6 @@ if True:
2577 else: 2577 else:
2578 all_current_packages = recipe.get_all_packages() 2578 all_current_packages = recipe.get_all_packages()
2579 2579
2580 # TODO currently we ignore packgegroups as we don't have a
2581 # way to deal with them yet.
2582
2583 # Dependencies for package which aren't satisfied by the 2580 # Dependencies for package which aren't satisfied by the
2584 # current packages in the custom image recipe 2581 # current packages in the custom image recipe
2585 deps = package.package_dependencies_source.annotate( 2582 deps = package.package_dependencies_source.annotate(
@@ -2587,8 +2584,10 @@ if True:
2587 pk=F('depends_on__pk'), 2584 pk=F('depends_on__pk'),
2588 size=F('depends_on__size'), 2585 size=F('depends_on__size'),
2589 ).values("name", "pk", "size").filter( 2586 ).values("name", "pk", "size").filter(
2590 ~Q(pk__in=all_current_packages) & 2587 # There are two depends types we don't know why
2591 Q(dep_type=Package_Dependency.TYPE_TRDEPENDS) 2588 (Q(dep_type=Package_Dependency.TYPE_TRDEPENDS) |
2589 Q(dep_type=Package_Dependency.TYPE_RDEPENDS)) &
2590 ~Q(pk__in=all_current_packages)
2592 ) 2591 )
2593 2592
2594 # Reverse dependencies which are needed by packages that are 2593 # Reverse dependencies which are needed by packages that are