aboutsummaryrefslogtreecommitdiffstats
path: root/lib/toaster/bldcontrol/models.py
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2014-07-15 13:01:56 +0100
committerAlexandru DAMIAN <alexandru.damian@intel.com>2014-07-23 17:53:19 +0100
commit1b5835e5d48cbfb7d38e38437c45d161052dfb37 (patch)
tree17ef34ce96bef91642bacf2d56f977230b957aba /lib/toaster/bldcontrol/models.py
parentd17500d3f73fdeeef5f11fb3773a65e927be3f02 (diff)
downloadbitbake-contrib-1b5835e5d48cbfb7d38e38437c45d161052dfb37.tar.gz
toaster: improved Project models
A layer may live in a subdirectory of a git repository, so we add a field to track this setting in the Project layers. We add the Project schedule_build function, which creates a build request from the current project configuration. We also fix an import problem with Projects in views. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Diffstat (limited to 'lib/toaster/bldcontrol/models.py')
-rw-r--r--lib/toaster/bldcontrol/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/toaster/bldcontrol/models.py b/lib/toaster/bldcontrol/models.py
index 8285257c8..1f253ffb2 100644
--- a/lib/toaster/bldcontrol/models.py
+++ b/lib/toaster/bldcontrol/models.py
@@ -71,6 +71,8 @@ class BRLayer(models.Model):
name = models.CharField(max_length = 100)
giturl = models.CharField(max_length = 254)
commit = models.CharField(max_length = 254)
+ dirpath = models.CharField(max_length = 254)
+
class BRVariable(models.Model):
req = models.ForeignKey(BuildRequest)