Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 88251E00F93; Tue, 6 Sep 2016 08:14:20 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_LOW, RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.192.181 listed in list.dnswl.org] * -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 * 2.4 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [209.85.192.181 listed in dnsbl.sorbs.net] Received: from mail-pf0-f181.google.com (mail-pf0-f181.google.com [209.85.192.181]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 6912BE00F7E for ; Tue, 6 Sep 2016 08:14:05 -0700 (PDT) Received: by mail-pf0-f181.google.com with SMTP id p64so75440837pfb.1 for ; Tue, 06 Sep 2016 08:14:05 -0700 (PDT) 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=RGsZNebDGAUdpakGjWDnQj6KlGe4/lKXJTUKDq33BJw=; b=QTegpy7jIKMpe6vpHF29LofCr1erAmT8zu8mZoqrOOlrRHYTGahECniW5eyeQTBAEV gSrsU+NcextJhyiESR9Xma9H2RTIJrG2F6oiRQQKoaxHyedRcpgqW+BGm/KszcAqaAKy +IKbgV/vIXJxOkHrUTRbxkcydH5HrJoE7QMPOlFxGB4xwtUdpqsyrCY1cO7Z6i/JrvzM jey8AxX3UlnrquFtbJ2KD0hunZpHMFppLKrZXpT/DiKBib24ZmTT24kk/Qan4pbqz7nY 2PXJPebjuwzOih5Xcj3Wv+9K0PCWwFyWfer0pvGf5ZaHo6n1vqYk520AMaJ5hISFAUVf Dcbw== 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=RGsZNebDGAUdpakGjWDnQj6KlGe4/lKXJTUKDq33BJw=; b=K1ftzY4O23B1wVD+DsVmz9vXEI0H3sjLrAY64XzxfgaZgiInDfyIns5GczwukFXUGQ jAqAl0VxhUUzyzHiW3jJ0PxWemil9hNKQ1yRj0x2IGesrcUK7N8J0Os3kGy3eAMLx5aS QQWsEpg2BX2cBfnAtVl9Rbk4iZc4ko5AX5KlU48LFw1ehmCX/0LT6Shs4dtylc8N6NIU G0FTej4QOnASmGr9VoPuzFjAYyVmK53pPsU7/QmQIVebwE5Wf5254XHJqLiotmO9HCVM i+cteuDt+JGx50UhZL13Akh8Chl8gRGIv8uUMUf/x9L5oK4vkqewMb8NSXK45WVJBxfc FK8g== X-Gm-Message-State: AE9vXwMPMADTWwlKpLR97ZzeoMr0/hgykO9Iia2XIJJL2BAefDMs0+XdtW1QLr8LSY1cPeQW X-Received: by 10.98.137.78 with SMTP id v75mr73852892pfd.146.1473174844507; Tue, 06 Sep 2016 08:14:04 -0700 (PDT) Received: from orion.ger.corp.intel.com ([192.55.54.40]) by smtp.gmail.com with ESMTPSA id ra13sm41979588pac.29.2016.09.06.08.14.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Sep 2016 08:14:03 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Tue, 6 Sep 2016 16:13:49 +0100 Message-Id: <1473174829-10588-5-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1473174829-10588-1-git-send-email-michael.g.wood@intel.com> References: <1473174829-10588-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH 4/4] toaster: buildinfohelper local layer don't construct path using git info 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: Tue, 06 Sep 2016 15:14:20 -0000 When the layer is local source don't try and work out the location of the layer by using the git information (getGitCloneDirectory) [YOCTO #10199] Signed-off-by: Michael Wood --- bitbake/lib/bb/ui/buildinfohelper.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py index 0f09b5c..6bf8278 100644 --- a/bitbake/lib/bb/ui/buildinfohelper.py +++ b/bitbake/lib/bb/ui/buildinfohelper.py @@ -449,7 +449,11 @@ class ORMWrapper(object): # note that this is different buildrequest = BuildRequest.objects.get(pk = br_id) for brl in buildrequest.brlayer_set.all(): - localdirname = os.path.join(bc.getGitCloneDirectory(brl.giturl, brl.commit), brl.dirpath) + if brl.local_source_dir: + localdirname = os.path.join(brl.local_source_dir, + brl.dirpath) + else: + localdirname = os.path.join(bc.getGitCloneDirectory(brl.giturl, brl.commit), brl.dirpath) # we get a relative path, unless running in HEAD mode where the path is absolute if not localdirname.startswith("/"): localdirname = os.path.join(bc.be.sourcedir, localdirname) @@ -979,8 +983,6 @@ class BuildInfoHelper(object): def _get_layer_version_for_path(self, path): self._ensure_build() - assert path.startswith("/") - def _slkey_interactive(layer_version): assert isinstance(layer_version, Layer_Version) return len(layer_version.local_path) -- 2.7.4