Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 48C71E00912; Mon, 29 Feb 2016 13:26:41 -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=-1.9 required=5.0 tests=BAYES_00 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] Received: from mail5.wrs.com (mail5.windriver.com [192.103.53.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 21CC6E008EE for ; Mon, 29 Feb 2016 13:26:36 -0800 (PST) Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id u1TLQXSj024293 (version=TLSv1 cipher=AES128-SHA bits=128 verify=OK); Mon, 29 Feb 2016 13:26:33 -0800 Received: from ord-dlerner-d8.wrs.com (172.25.44.108) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.248.2; Mon, 29 Feb 2016 13:26:32 -0800 From: Dave Lerner To: , , Date: Mon, 29 Feb 2016 15:26:19 -0600 Message-ID: <1456781179-31194-2-git-send-email-dave.lerner@windriver.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1456781179-31194-1-git-send-email-dave.lerner@windriver.com> References: <1456781179-31194-1-git-send-email-dave.lerner@windriver.com> MIME-Version: 1.0 Subject: [PATCH 1/1] toaster: fixup dependency excludes for customimage 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, 29 Feb 2016 21:26:41 -0000 Content-Type: text/plain [YOCTO #9156] For a customized image when adding a dependent package X that depends on dependency package Y, in addition to adding X to appends_set and Y to includes_set, make sure that Y is no longer in the excludes_set. Y may have been added to the excludes_set by a prior package removal. Signed-off-by: Dave Lerner --- bitbake/lib/toaster/toastergui/views.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 28b03d3..4670139 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py @@ -2653,6 +2653,13 @@ if True: name=dep.depends_on.name) recipe.includes_set.add(cust_package) + try: + # when adding the pre-requisite package make sure it's not in the + # excluded list from a prior removal. + recipe.excludes_set.remove(cust_package) + except Package.DoesNotExist: + # Don't care if the package had never been excluded + return {"error": "ok"} except: logger.warning("Could not add package's suggested" "dependencies to the list") -- 1.9.1