Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 2DDC9E00BFE; Thu, 3 Mar 2016 13:43:44 -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=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [147.11.1.11 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 811BCE00BEB for ; Thu, 3 Mar 2016 13:43:42 -0800 (PST) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id u23Lhe6L013319 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 3 Mar 2016 13:43:40 -0800 (PST) Received: from ord-dlerner-d8.wrs.com (172.25.44.108) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.248.2; Thu, 3 Mar 2016 13:43:39 -0800 From: Dave Lerner To: , , Date: Thu, 3 Mar 2016 15:43:13 -0600 Message-ID: <1457041393-4803-1-git-send-email-dave.lerner@windriver.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Subject: [PATCH 1/1 v2] 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: Thu, 03 Mar 2016 21:43:44 -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..f3b8d3c 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 + pass except: logger.warning("Could not add package's suggested" "dependencies to the list") -- 1.9.1