Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 45032E00BD2; Tue, 8 Dec 2015 13:17:38 -0800 (PST) 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 * [209.85.192.180 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-pf0-f180.google.com (mail-pf0-f180.google.com [209.85.192.180]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 95D60E00B8B for ; Tue, 8 Dec 2015 13:16:52 -0800 (PST) Received: by pfdd184 with SMTP id d184so17915082pfd.3 for ; Tue, 08 Dec 2015 13:16:52 -0800 (PST) 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=0ygZt7evnNU+0/S71WWnko8CZEozRL+l8obePu22FiQ=; b=1lZTKKEJoLskIByGck2Y8MsicpvxQx4u+W2EhjfVw7AZjLQ+ucRkYCEfU73+M7mPLs MeRSe6ZeQKRsxwyRmQI+wn/rIyb1AJ5x/OUOb/hIN/F9x5CCEUMX2XixDBrltda0fbt6 R+3AUF/5500ftWXY9keVpaojBB3vQz2nJ4xO1rFMfofPibaPrruqdRGUoTNGqziqFsSc Nq/KwevDslvARdGQgvxtnIiHfnqztEaa5mM1bSho3ygNtS07LkKpJzhxku3UAtEkAaUg GtSlTIbEtQKFdJHv8fhXpXgPy7fGGQfgk8QhK6Jioszj3oESWQENWb4jUVhFqu1GL6jQ rfjg== 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=0ygZt7evnNU+0/S71WWnko8CZEozRL+l8obePu22FiQ=; b=Urk8Yw0RWdCYImSPjniK+IcT4yF5KGCysmgK69gX2RAJlVAq0JY0eg6l55Mr4fIfoD TuS2jo4O+1wa7Y5GT8RW9jeV6Xw5Vw0YbqzkHhq1+Rzf1BG+5QUfoMaSROw2qm/JJ50A otLafCrRi8diMtCjvsSYYsDvDeAt8U2KXw2iXdyDnUVTrCvjvcOlle/mEv85PtI5yzIu hxfS4WDD1jnJIG2PxCd4/8qw6IHJQGU96BqVRO60njrzy42RzkpZFRbhlRqELxXbo7ba IQC5b+vNLIiqGF/xBu2dsv7NREyVFU0a2mu9avc9nobo0D4xKn4s2G6prELJnHeGZHFd UzWg== X-Gm-Message-State: ALoCoQlIOay8bTQPMvXQ34pppHDSPDeBuOraZCGMe50ahOx/7QAeieJioQJfCC3gL7HjGYuTJvQyODQgc6iL/0uGIzrcD8JnQA== X-Received: by 10.98.73.10 with SMTP id w10mr7996373pfa.164.1449609412015; Tue, 08 Dec 2015 13:16:52 -0800 (PST) Received: from draco.ger.corp.intel.com ([192.55.54.40]) by smtp.gmail.com with ESMTPSA id v64sm6675766pfi.50.2015.12.08.13.16.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Dec 2015 13:16:50 -0800 (PST) From: Michael Wood To: toaster@yoctoproject.org Date: Tue, 8 Dec 2015 21:15:54 +0000 Message-Id: <1449609380-11073-9-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1449609380-11073-1-git-send-email-michael.g.wood@intel.com> References: <1449609380-11073-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH 08/34] toaster: orm Add ProjectPackage table 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, 08 Dec 2015 21:17:38 -0000 This table is used to track all the available packages in the current project scope. Many of these packages belong to many CustomImageRecipes. Signed-off-by: Michael Wood --- bitbake/lib/toaster/orm/models.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index debe6fa..2cbbb85 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py @@ -588,6 +588,22 @@ class Package(models.Model): section = models.CharField(max_length=80, blank=True) license = models.CharField(max_length=80, blank=True) +class ProjectPackage(Package): + project = models.ForeignKey('Project') + # CustomImageRecipe fields to track pacakges appended, + # included and excluded from a CustomImageRecipe + recipe_includes = models.ManyToManyField('CustomImageRecipe', + related_name='includes_set', + null=True) + recipe_excludes = models.ManyToManyField('CustomImageRecipe', + related_name='excludes_set', + null=True) + recipe_appends = models.ManyToManyField('CustomImageRecipe', + related_name='appends_set', + null=True) + + + class Package_DependencyManager(models.Manager): use_for_related_fields = True -- 2.1.4