Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B192BE00CD1; Fri, 4 Mar 2016 08:45:46 -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=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW 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] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.192.177 listed in list.dnswl.org] Received: from mail-pf0-f177.google.com (mail-pf0-f177.google.com [209.85.192.177]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 1F47BE00B89 for ; Fri, 4 Mar 2016 08:45:45 -0800 (PST) Received: by mail-pf0-f177.google.com with SMTP id x188so14379093pfb.2 for ; Fri, 04 Mar 2016 08:45:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Kr0GEXu0BYb8QqaEopxGMtaPHTip8U8RxbvEGT4JJ0M=; b=nb0D9SjGvp0ttSgCgX85+R67pmFLKln4bfgnHpSbIzMgJ0BCWWzexmPTWGUkdNdpvi TeI53MJCgpP4q2vouOsHPTpFD/W3IzG9Y7swSKK8EcmEgHyK7MXwScuAS2KfTvDr2gBe aaenqYszE86JHe5Lks4cbiHDuqOgjcxoGPsGKcgCDKHbOzSBsVhU4EuIXjxqORn2P2Kw Tu2f+gH61SD7kNx9pRztN4Ro18KrZPJfjhgyQX2nsCfcXbkcVItKZe+9ovT7jL0U05rB flu+Rp/+TVA1ZaI03e/Kj81iVjf37eooNNS7hylbckgg986yqFqgE03C88T3hcyN7EAV soRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Kr0GEXu0BYb8QqaEopxGMtaPHTip8U8RxbvEGT4JJ0M=; b=EP3ggNr2B89VwUJ3LWEJwGx8truEnIK0yNP27X7FZwoV9ksSTumPY+RKt9+DUSDxaM Tg2vc3B2tCl1UuHZ3hqBYafLwlgkABU69knPL1sR3shNSrPLFLIFPcqlKqSIIsp2LuHp 41hlFQjhnyd+pnlpKjPJD8dkHfXnNe1qni/Qn4ujhcEr1wn4KKoOQXrVh+bCM+Yo/+hx shHvhxD+o5IeROeMfR7F5AIIqldoOZk5eyHhvfqvMilejmWo6zJSz0/1OJ9yvgw9yaPC tVAJNtx/xa5XKBKAj7QHGt8QqJEGgylSjqs+1cbJSqn9prW6LN7BbXzwEk4Id9cYIebg jkeQ== X-Gm-Message-State: AD7BkJK1FBanulYrO9gqVxtSVT6sssbGBQR+LAX5CRNbX9doIBh8RWHLC5Q8KfOi7aAYMpSV X-Received: by 10.98.18.212 with SMTP id 81mr13610735pfs.104.1457109945535; Fri, 04 Mar 2016 08:45:45 -0800 (PST) Received: from dorado.ger.corp.intel.com (fmdmzpr04-ext.fm.intel.com. [192.55.55.39]) by smtp.gmail.com with ESMTPSA id t75sm6687827pfa.54.2016.03.04.08.45.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Mar 2016 08:45:45 -0800 (PST) From: Michael Wood To: toaster@yoctoproject.org Date: Fri, 4 Mar 2016 16:45:37 +0000 Message-Id: <1457109937-14830-2-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1457109937-14830-1-git-send-email-michael.g.wood@intel.com> References: <1457109937-14830-1-git-send-email-michael.g.wood@intel.com> Subject: [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: Fri, 04 Mar 2016 16:45:46 -0000 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 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 = 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