Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 4984AE00C4F; Mon, 7 Mar 2016 03:54:39 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.55.52.93 listed in list.dnswl.org] Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 183C3E00BFF for ; Mon, 7 Mar 2016 03:54:35 -0800 (PST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP; 07 Mar 2016 03:54:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,551,1449561600"; d="scan'208";a="903809564" Received: from irsmsx153.ger.corp.intel.com ([163.33.192.75]) by orsmga001.jf.intel.com with ESMTP; 07 Mar 2016 03:54:34 -0800 Received: from irsmsx109.ger.corp.intel.com ([169.254.13.174]) by IRSMSX153.ger.corp.intel.com ([169.254.9.60]) with mapi id 14.03.0248.002; Mon, 7 Mar 2016 11:54:30 +0000 From: "Barros Pena, Belen" To: "Wood, Michael G" , "toaster@yoctoproject.org" Thread-Topic: [Toaster] [PATCH] toaster: views api Package info return both kinds of RDEPENDS Thread-Index: AQHReGgbOAA1weSzbUaPrbcb5zVCYw== Date: Mon, 7 Mar 2016 11:54:29 +0000 Message-ID: References: <1457109937-14830-1-git-send-email-michael.g.wood@intel.com> <1457109937-14830-2-git-send-email-michael.g.wood@intel.com> In-Reply-To: <1457109937-14830-2-git-send-email-michael.g.wood@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.6.1.160122 x-originating-ip: [10.237.224.34] MIME-Version: 1.0 Subject: Re: [PATCH] toaster: views api Package info return both kinds of RDEPENDS X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2016 11:54:39 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <7DFD476BB98720489896A6D3E12C1B38@intel.com> Content-Transfer-Encoding: quoted-printable On 04/03/2016 16:45, "toaster-bounces@yoctoproject.org on behalf of Michael Wood" 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=E9n > >Also remove obsolete comment > >Signed-off-by: Michael Wood >--- > 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 =3D recipe.get_all_packages() >=20 >- # 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 =3D package.package_dependencies_source.annotate( >@@ -2587,8 +2584,10 @@ if True: > pk=3DF('depends_on__pk'), > size=3DF('depends_on__size'), > ).values("name", "pk", "size").filter( >- ~Q(pk__in=3Dall_current_packages) & >- Q(dep_type=3DPackage_Dependency.TYPE_TRDEPENDS) >+ # There are two depends types we don't know why >+ (Q(dep_type=3DPackage_Dependency.TYPE_TRDEPENDS) | >+ Q(dep_type=3DPackage_Dependency.TYPE_RDEPENDS)) & >+ ~Q(pk__in=3Dall_current_packages) > ) >=20 > # Reverse dependencies which are needed by packages that >are >--=20 >2.5.0 > >--=20 >_______________________________________________ >toaster mailing list >toaster@yoctoproject.org >https://lists.yoctoproject.org/listinfo/toaster