Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B8CDDE00CB9; Mon, 30 Sep 2019 19:53:05 -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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE 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.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (pranaymankad[at]gmail.com) * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no * trust * [209.85.222.171 listed in list.dnswl.org] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 947A0E00C87 for ; Mon, 30 Sep 2019 19:53:03 -0700 (PDT) Received: by mail-qk1-f171.google.com with SMTP id 4so9788725qki.6 for ; Mon, 30 Sep 2019 19:53:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=tc86/UrQ/lneoT0YwkWZpMK7XDBLfW/KIoxmL5bq4KI=; b=RLEdtTDj101jNMdbY+Adto8bOBgYhfOcwyViux0O5vbUPbYCKDdKs4RBZAbj/Bihwu cJhDZXNNueaEoeRTZlyIkJ0eVyyUoOXhtnwswAPT4jzQ8HYgBS74Kd9X1h9hYQ3YGYw3 3aFIJwmfV1G0R8QZymURxMdGSazVTQNAlgQm4dncXsDskgV54XjLqH3yMWLbNx1KpW4A Bv9Ul84f62WivvdWmgybbfF+SjJZrjzVFWY4jZXhaAo/IS26MPEnKpMaI98u2yFDSvry q0wDl7avQ6bJqsKU/BOwgLZKvk6QvurkReJ0HbWVQGqqTRtYKbfGjRN/VePvL3uIlrRE CMhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=tc86/UrQ/lneoT0YwkWZpMK7XDBLfW/KIoxmL5bq4KI=; b=aX3JseRCLXjHVVWqEt1HHg9qCLMLL2+tfePFwq7BL4AqDwOBbrsplLFtfXriKRmwPE /ljncxTo8q35h15F15DMFOSAc9iYEgbyR6L/iNTufksM3GANpKfcGA4fHk+AKb50Et9d seBCAurg3zxXj2BKL+JK4U4Sbj/rB8/eSdAl7xTcufVMAwdxSLVxh+UiXgPlbkIoWRmn TOV8RXEITo5ydzZgk94Bi3wafS/Pv0fkwstCWMKPMCvmYLTW7cUtEwVaDQL7mZcQLNCp sTA4dkRN8BGp7WXEBuFqcVNl6JTFnCq4RP/J2wDgl7VDbapy2n6trEMKLcg2cF6SHV7P rVwQ== X-Gm-Message-State: APjAAAWnMC28crP0hZB7BdMfGWWpfOGHw07MwcyptSxU2kmzO7ET96WM O8VCTnB3QBfcuUGBokw3NdveIktwq5k= X-Google-Smtp-Source: APXvYqwPiT0WqeZXXZoKoWEQnzRQHoIf0qosIa53pQxvQUGaSMBUO2vUbjCJNA6AocwA0Y5xwYynJw== X-Received: by 2002:a05:620a:13c5:: with SMTP id g5mr3848120qkl.475.1569898382854; Mon, 30 Sep 2019 19:53:02 -0700 (PDT) Received: from pranay.local.net (c-66-30-118-236.hsd1.ma.comcast.net. [66.30.118.236]) by smtp.gmail.com with ESMTPSA id h68sm6552163qkf.2.2019.09.30.19.53.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 Sep 2019 19:53:02 -0700 (PDT) From: Pranay Mankad To: yocto@yoctoproject.org Date: Mon, 30 Sep 2019 22:52:59 -0400 Message-Id: <20191001025259.67179-1-pranaymankad@gmail.com> X-Mailer: git-send-email 2.15.1 X-Mailman-Approved-At: Fri, 04 Oct 2019 08:37:50 -0700 Cc: Pranay Mankad , mankad@synopsys.com, paul.eggleton@intel.com Subject: [layerindex-web][PATCH] These changes will add the metadata for product revision and epoch if present in the bitbake recipe. X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Oct 2019 02:53:05 -0000 Signed-off-by: Pranay Mankad --- .../migrations/0042_recipe_property_addition.py | 20 ++++++++++++++++++++ layerindex/models.py | 2 ++ layerindex/update_layer.py | 2 ++ 3 files changed, 24 insertions(+) create mode 100644 layerindex/migrations/0042_recipe_property_addition.py diff --git a/layerindex/migrations/0042_recipe_property_addition.py b/layerindex/migrations/0042_recipe_property_addition.py new file mode 100644 index 0000000..5583696 --- /dev/null +++ b/layerindex/migrations/0042_recipe_property_addition.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.24 on 2019-09-24 21:34 +from __future__ import unicode_literals +from django.db import migrations, models +class Migration(migrations.Migration): + dependencies = [ + ('layerindex', '0041_recipe_configopts'), + ] + operations = [ + migrations.AddField( + model_name='recipe', + name='pe', + field=models.CharField(blank=True, max_length=100), + ), + migrations.AddField( + model_name='recipe', + name='pr', + field=models.CharField(blank=True, max_length=100), + ), + ] diff --git a/layerindex/models.py b/layerindex/models.py index 0ca7c06..332ba39 100644 --- a/layerindex/models.py +++ b/layerindex/models.py @@ -461,6 +461,8 @@ class Recipe(models.Model): filepath = models.CharField(max_length=255, blank=True) pn = models.CharField(max_length=100, blank=True) pv = models.CharField(max_length=100, blank=True) + pr = models.CharField(max_length=100, blank=True) + pe = models.CharField(max_length=100, blank=True) summary = models.CharField(max_length=200, blank=True) description = models.TextField(blank=True) section = models.CharField(max_length=100, blank=True) diff --git a/layerindex/update_layer.py b/layerindex/update_layer.py index 9dc395f..7131d70 100644 --- a/layerindex/update_layer.py +++ b/layerindex/update_layer.py @@ -108,6 +108,8 @@ def update_recipe_file(tinfoil, data, path, recipe, layerdir_start, repodir, sto envdata.setVar('SRCPV', 'X') recipe.pn = envdata.getVar("PN", True) recipe.pv = envdata.getVar("PV", True) + recipe.pr = envdata.getVar("PR", True) or "" + recipe.pe = envdata.getVar("PE", True) or "" recipe.summary = envdata.getVar("SUMMARY", True) recipe.description = envdata.getVar("DESCRIPTION", True) recipe.section = envdata.getVar("SECTION", True) -- 2.15.1