Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 65A67E00C55; Fri, 16 Sep 2016 02:28:22 -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=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [74.125.82.42 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 Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 1EA88E00A21 for ; Fri, 16 Sep 2016 02:28:18 -0700 (PDT) Received: by mail-wm0-f42.google.com with SMTP id 1so30047884wmz.1 for ; Fri, 16 Sep 2016 02:28:18 -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; bh=MGRfLiG1gOIu9eevWYWMEVwiirx2pC+yZolwBAhHZ/0=; b=kPj7wswq5CS7+eKJxXscho3ZE713+a/kBfbMIfz5ECn+wUKPn1gbPbt3pZK/yUJBDX O1WmwjHAeUePDrd+vDUQ1HpASIH+aXu/WDetyF9Q8/IXjF7vX5DoXFCyAokAqniZyvdr BMJb6HmSzlpw8ICYquRYfzQavdFpHiRZ2UV9qoiiz2j6dtEvI6DbDxWaBLohhr2Ny0T0 3S9KipB48frol9hS1vTwlBR+gOGpU+r4QYPAveg0k3FkyPFtPX66+/Zu25anBQ6Iq2+4 RisefLEyR9RQsCRpvNaXAM9/aM7U79OhNv0Lo0SMNlnc7Mjd4Ldp2M5l0aWJlKG9xMDy ynTg== 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; bh=MGRfLiG1gOIu9eevWYWMEVwiirx2pC+yZolwBAhHZ/0=; b=AqvqkCq3caW8uHbN9m/Xc9g040K5cwZRB6l98EWTlX7nQOjgCnM0W6dqjXdDEn89T+ mg+N+gyQ6jkU9dgP78MiXFicy4v1ptJtSRL2ImGbrWYWPUVb/ZePONrbBaehb9fM2pDS vbMAutONPfr0qSuTqxGw1J0EWzgoqrlT6z/J2G5C0QxzjNlAkrbedxXcOAieWAxZfV97 jcoNAYp6t686jMUnIWvFEb7yDnqfOgWHG7SC0Cxnq/1y6N6UAYqk8FwnXuJhw68M7t+A JyWsogtB1mWKRpM/JaKxJaZZjsmB4GoZHRk1fRbMU+lSNqoaOG8DN6ro6bkjajW/Pnpc 8WWQ== X-Gm-Message-State: AE9vXwOko094vDXENwEOeLziyZAel99Jzgyra4Aw8lEJItDcSabGbk02CKbmr/qjNgoYL+OM X-Received: by 10.194.51.170 with SMTP id l10mr4624685wjo.203.1474018097772; Fri, 16 Sep 2016 02:28:17 -0700 (PDT) Received: from orion.home (host31-48-249-102.range31-48.btcentralplus.com. [31.48.249.102]) by smtp.gmail.com with ESMTPSA id u129sm6469357wmb.11.2016.09.16.02.28.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Sep 2016 02:28:17 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Fri, 16 Sep 2016 10:28:13 +0100 Message-Id: <1474018093-5566-1-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [PATCH] 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: Fri, 16 Sep 2016 09:28:22 -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 96166dc..1d9132c 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