[Toaster] [PATCH] toaster: views api Package info return both kinds of RDEPENDS

Barros Pena, Belen belen.barros.pena at intel.com
Mon Mar 7 03:54:29 PST 2016



On 04/03/2016 16:45, "toaster-bounces at yoctoproject.org on behalf of
Michael Wood" <toaster-bounces at yoctoproject.org on behalf of
michael.g.wood at intel.com> wrote:

>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.

This seems to work for me. Thanks!

Belén

>
>Also remove obsolete comment
>
>Signed-off-by: Michael Wood <michael.g.wood at intel.com>
>---
> bitbake/lib/toaster/toastergui/views.py | 9 ++++-----
> 1 file changed, 4 insertions(+), 5 deletions(-)
>
>diff --git a/bitbake/lib/toaster/toastergui/views.py
>b/bitbake/lib/toaster/toastergui/views.py
>index f3b8d3c..bd11892 100755
>--- a/bitbake/lib/toaster/toastergui/views.py
>+++ b/bitbake/lib/toaster/toastergui/views.py
>@@ -2577,9 +2577,6 @@ if True:
>             else:
>                 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
>                 # current packages in the custom image recipe
>                 deps = package.package_dependencies_source.annotate(
>@@ -2587,8 +2584,10 @@ if True:
>                     pk=F('depends_on__pk'),
>                     size=F('depends_on__size'),
>                 ).values("name", "pk", "size").filter(
>-                    ~Q(pk__in=all_current_packages) &
>-                    Q(dep_type=Package_Dependency.TYPE_TRDEPENDS)
>+                    # There are two depends types we don't know why
>+                    (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
>-- 
>2.5.0
>
>-- 
>_______________________________________________
>toaster mailing list
>toaster at yoctoproject.org
>https://lists.yoctoproject.org/listinfo/toaster



More information about the toaster mailing list