Return-Path: Received: from mailout4.zoneedit.com (mailout4.zoneedit.com [64.68.198.64]) by arago-project.org (Postfix) with ESMTPS id DA1C652970 for ; Thu, 12 Sep 2019 15:39:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mailout4.zoneedit.com (Postfix) with ESMTP id D9D4E40C04; Thu, 12 Sep 2019 15:38:46 +0000 (UTC) Received: from mailout4.zoneedit.com ([127.0.0.1]) by localhost (zmo14-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bxQq1c9ooJrw; Thu, 12 Sep 2019 15:38:46 +0000 (UTC) Received: from mail.denix.org (pool-100-15-86-127.washdc.fios.verizon.net [100.15.86.127]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout4.zoneedit.com (Postfix) with ESMTPSA id C092F40A58; Thu, 12 Sep 2019 15:38:45 +0000 (UTC) Received: from gimli.denix (unknown [192.168.30.6]) by mail.denix.org (Postfix) with ESMTP id 888B4173CB7; Thu, 12 Sep 2019 11:38:43 -0400 (EDT) From: Denys Dmytriyenko To: meta-arago@arago-project.org Date: Thu, 12 Sep 2019 11:38:08 -0400 Message-Id: <1568302717-46518-4-git-send-email-denys@ti.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1568302717-46518-1-git-send-email-denys@ti.com> References: <1568302717-46518-1-git-send-email-denys@ti.com> Subject: [master][PATCH 03/32] sourceipk.bbclass: avoid adding duplicate ${PN}-src X-BeenThere: meta-arago@arago-project.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Arago metadata layer for TI SDKs - OE-Core/Yocto compatible List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Sep 2019 15:39:56 -0000 Signed-off-by: Denys Dmytriyenko --- meta-arago-distro/classes/sourceipk.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta-arago-distro/classes/sourceipk.bbclass b/meta-arago-distro/classes/sourceipk.bbclass index 14b46f9..3b011a9 100644 --- a/meta-arago-distro/classes/sourceipk.bbclass +++ b/meta-arago-distro/classes/sourceipk.bbclass @@ -290,9 +290,9 @@ INSANE_SKIP_${PN}-src += "${@oe.utils.conditional("${CREATE_SRCIPK}", "0", "", " python __anonymous () { if d.getVar("CREATE_SRCIPK") != "0": + if '${PN}-src' not in d.getVar("PACKAGES", False): + d.appendVar('PACKAGES', ' ${PN}-src') pn = d.getVar("PN") - - d.appendVar('PACKAGES', ' %s-src' % (pn)) d.setVar('FILES_%s-src' % (pn), '${SRCIPK_INSTALL_DIR}') } -- 2.7.4