Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id A2CD4E00D31; Thu, 18 Aug 2016 02:42:30 -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: * -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 * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.220.50 listed in list.dnswl.org] Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 0AAB5E00CEF for ; Thu, 18 Aug 2016 02:42:29 -0700 (PDT) Received: by mail-pa0-f50.google.com with SMTP id fi15so5005912pac.1 for ; Thu, 18 Aug 2016 02:42:29 -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=eR2SxZYixgkq67brA4ahZdI8CCkMZ88WfSu4vyXjS38=; b=hZExiYre5d67xS6mhF4MFLTDhllyh3beGv24tlazYsDUCBcLgvoKnO/NJNdtCnby0J P63OSvREPS+q72vfk8MuTqXB7cTyJMpF6BCNhLSkH631l9BnxLpCJavxNAthSTaAZuVr PnaUtwsTpN1A4PPO81Xl5uG6QBgUVGM2qHSHilsEJ8pBndfXwwzEKAPR3qKM8aqrOXYM h617eEN9DOuIjFbEh1GH6qyODhB0kqN86sGZYlxR42L0HMouIX9imeU8lijhMS9eJU6E qnrxktMD+qc24YqmIoYdDY4DZZcEstass9eBRZlQ9c6mhXVqKNuTxSg7aPl1zblneGG3 71bQ== 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=eR2SxZYixgkq67brA4ahZdI8CCkMZ88WfSu4vyXjS38=; b=L21XL7ckaZJYwJNip6dVU1OF7NRmMDm6EbNwOCrsvl93hYm9LHNSUMKGUtQk+8LsTd 8xUpzQgA4HQHMYrV4x+oAjW2VgbltVDrZPM4P3OXLP8GMMaCg+l8BrUKfiT5lorjdkPc Y4uDi8+Bjhi3d5aEurl+3KftZJNN0vsbT16nOlgzm/+HeiM7eWTHdSWaIz41q3Lqp1/X Yv3ibLKHMc3ko5LgRp2jqVUqkEaOXJCSm4Pe628wnvWUeHtT+bpnRRGs1tA8MBdu7inp blicxPPx7PUC9GSN6G87QCkeeRXt4bAGuoF2JhGbi5vvbPtsR9oA0nUeLfyJcfmY1jeg 1s2A== X-Gm-Message-State: AEkoouuMeBBwgGz7dfnJq1Ij0avl80AO2VoA0JHHrmis3zuYR0psWjyj6goxormpAMGiSuW4 X-Received: by 10.66.159.195 with SMTP id xe3mr2358252pab.159.1471513349112; Thu, 18 Aug 2016 02:42:29 -0700 (PDT) Received: from orion.ger.corp.intel.com ([192.55.54.44]) by smtp.gmail.com with ESMTPSA id e10sm2517365pay.39.2016.08.18.02.42.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Aug 2016 02:42:28 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Thu, 18 Aug 2016 10:42:12 +0100 Message-Id: <1471513336-13789-4-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1471513336-13789-1-git-send-email-michael.g.wood@intel.com> References: <1471513336-13789-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH 3/7] toaster: update api to include local_source_dir 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, 18 Aug 2016 09:42:30 -0000 From: Sujith H Add an additional argument to the api to handle local_source_dir which is the value user passes to import non-git layers. [YOCTO #9913] Signed-off-by: Sujith H --- bitbake/lib/toaster/toastergui/api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bitbake/lib/toaster/toastergui/api.py b/bitbake/lib/toaster/toastergui/api.py index b57f670..8dde128 100644 --- a/bitbake/lib/toaster/toastergui/api.py +++ b/bitbake/lib/toaster/toastergui/api.py @@ -135,7 +135,7 @@ class XhrLayer(View): Method: POST Args: - vcs_url, dirpath, commit, up_branch, summary, description + vcs_url, dirpath, commit, up_branch, summary, description, local_source_dir add_dep = append a layerversion_id as a dependency rm_dep = remove a layerversion_id as a depedency @@ -166,6 +166,8 @@ class XhrLayer(View): layer_version.layer.summary = request.POST["summary"] if "description" in request.POST: layer_version.layer.description = request.POST["description"] + if "local_source_dir" in request.POST: + layer_version.layer.local_source_dir = request.POST["local_source_dir"] if "add_dep" in request.POST: lvd = LayerVersionDependency( -- 2.7.4