From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7018102194747473920 X-Received: by 2002:a25:6d44:: with SMTP id i65mr30126250ybc.278.1634561934204; Mon, 18 Oct 2021 05:58:54 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a25:cb8f:: with SMTP id b137ls4539040ybg.0.gmail; Mon, 18 Oct 2021 05:58:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzN+hS+JmxF34OJtp/pqC9wLxPuKyPvACFh6TjmQ09kMu5IgBg2F46k9VXmA5ZAwmnV8WzM X-Received: by 2002:a25:bd04:: with SMTP id f4mr29882089ybk.372.1634561933641; Mon, 18 Oct 2021 05:58:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634561933; cv=none; d=google.com; s=arc-20160816; b=k2AEWBZrsHdb+KesFpnEWxrUs1Bt73/NgdZZtGAHbxlj0TyKNIbjTwIy2JH7Plfkjs hlmn6TWeCvblPpDAwR8st8jHTEr1QbOm3VrCkua8jAAPhsRM7thyY1KnH3prMIYAfx4O GJDNKY+JCMp/0WJouBm1f7O5tWDZaOF4I3UqXBWJFlb+QsdEIVib9/OQ2LNZMaB7FKgV RDyXiBThk521WZubqEdIiHjxN4iX30HonTzQEzbDmj4xFAEK6TYLQC/q6gf1uC7oECqm TSVUdNrbKtjRCQETgndBf/AFdqVp6DaqsIMDCSOMQ+gLXCm3O+uKWiLZ7AdrDArrKZxh jx5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=HNMsihc6+RZPF91/4JWZCCKgZYwOxrlsaRWtU+uSq9w=; b=dyaBhwlzqpP2jFW0YrKPDP1v1+6B5CkKSbwfQ27d5ipIC1poEdt9rVCgZSGE5ZNCsF GkPUIGomJD9bMBVLFoAWFSN6GdxzmtJu6gp75kmLJx9+D4XQFjB/uiYPjf5Nsu/vLokI 1biCGtz0Qzk60kVTfpv/qyGgGkLK/iaOxGqL0qC3fstkyZ9i+mtXTXoz/oEQH/q8GE3q yQWh/QcGIdLJ7LBVCb+HAVLnVlnsen2lqzZXnUxpa9cMtqZzBMDAoGkvbXtVzm5afgfp 554gdBIAGP8yP4cOr9HKZuyaXshH1ePw7PQ/JgY7yviZK6ibEEVq9k1zWBkP6UI5rR5Z BRrg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.129.153 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Return-Path: Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com. [68.232.129.153]) by gmr-mx.google.com with ESMTPS id t13si1042412ybu.2.2021.10.18.05.58.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Oct 2021 05:58:53 -0700 (PDT) Received-SPF: pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.129.153 as permitted sender) client-ip=68.232.129.153; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.129.153 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com IronPort-SDR: iHVzLCer8Ogks2DcNjMaYHnDZ3E0EIwMHfLydtPRzi27nz+bRx07wzAwCJuW3ML+xsjLI7oxg2 2VP45Hlq5ZF6HpBZITTL3G22XTy3v7yLlVqorle6PRFER8KJ2r7foFef1Evk3DTg5hlC3UaH3f D0xFE2PGA7YsL25q1zsBTA5BcP3Z3ukeeQ1TkPWdhihPN344O7rYvgWp7qaCiZntCldRNxsA9x 2eYbFe54HB1epbIU+jQSYPho0FAdl0TdD/l8GixGmWIzj7rni8RZxs6srD9xFXxXSiBEOeUVxs Jr/Lu1pT3iUwBFJHvNq9DtYd X-IronPort-AV: E=Sophos;i="5.85,382,1624348800"; d="scan'208";a="69783958" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 18 Oct 2021 04:58:53 -0800 IronPort-SDR: WfmWZwJMuFXTa4F7rANG5fx8vfkBQdAnAKkF7ruQM4+rbutLyqdSFyyUX1uogpjozkB1aF1iQV vHY5QBvvNZHtH3bMLz/e1dacHagO1uSuLQy+Fwt1/xg//ASdIAlrwhsvldliyEt/Gaew9yDZC3 a1gOWFpwZ8S0CHfzv/GoG96hLj/RIjcaL20nwxSuJdaSJFuN0SU5S/uvnOjOjX+Cq43Fak7jwd jon+tuYYYXWxcIL38xQdWNcZuPqP0Ljg64Fm1dp9T4UrJ1VuhWToajnEfBbgQv+VZFw27b1eOS Zoo= From: Vijai Kumar K To: CC: Vijai Kumar K Subject: [PATCH v2] isar-bootstrap: Fix SRC_URI inclusion Date: Mon, 18 Oct 2021 18:28:32 +0530 Message-ID: <20211018125832.507603-1-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <6d165415-c3a6-49ca-b20b-e8503da0b16an@googlegroups.com> References: <6d165415-c3a6-49ca-b20b-e8503da0b16an@googlegroups.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Return-Path: Vijaikumar_Kanagarajan@mentor.com X-ClientProxiedBy: svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) X-TUID: /RNgWBg6wi+i Fix commit 447b298. Include the right entries to SRC_URI. Also, handle situations where in those variables are not set. Signed-off-by: Vijai Kumar K --- meta/recipes-core/isar-bootstrap/isar-bootstrap.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc index b8af676..ab3dd66 100644 --- a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc +++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc @@ -59,12 +59,12 @@ python () { filename = fetcher.localpath(key) d.appendVar("THIRD_PARTY_APT_KEYFILES", " %s" % filename) - distro_apt_sources = d.getVar(d.getVar("DISTRO_VARS_PREFIX") + "DISTRO_APT_SOURCES", True) + distro_apt_sources = d.getVar(d.getVar("DISTRO_VARS_PREFIX") + "DISTRO_APT_SOURCES", True) or "" for file in distro_apt_sources.split(): d.appendVar("SRC_URI", " file://%s" % bb.parse.resolve_file(file, d)) - distro_apt_preferences = d.getVar(d.getVar("DISTRO_VARS_PREFIX") + "DISTRO_APT_PREFERENCES", True) - for file in distro_apt_sources.split(): + distro_apt_preferences = d.getVar(d.getVar("DISTRO_VARS_PREFIX") + "DISTRO_APT_PREFERENCES", True) or "" + for file in distro_apt_preferences.split(): d.appendVar("SRC_URI", " file://%s" % bb.parse.resolve_file(file, d)) } -- 2.25.1