[gnome-continuous-yocto/gnomeostree-3.28-rocko: 1828/8267] bitbake: toaster: add local_source_dir field to model
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 1828/8267] bitbake: toaster: add local_source_dir field to model
- Date: Sat, 16 Dec 2017 22:22:27 +0000 (UTC)
commit 8cad51965d07a6e395793224fa4103bc4bc2b967
Author: Sujith H <sujith h gmail com>
Date: Wed Jul 20 08:57:11 2016 +0000
bitbake: toaster: add local_source_dir field to model
Add a new field local_source_dir to model.
This will clearly differentiate us from the
vcs_url which is for git path.
Adding migration file 0010_layer_local_source_dir_path.py
along with this patch.
[YOCO #9911]
(Bitbake rev: 83763d89f9d0bc535e930a2094ba8201675d40be)
Signed-off-by: Sujith H <sujith h gmail com>
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
.../orm/migrations/0015_layer_local_source_dir.py | 19 +++++++++++++++++++
bitbake/lib/toaster/orm/models.py | 1 +
2 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/bitbake/lib/toaster/orm/migrations/0015_layer_local_source_dir.py
b/bitbake/lib/toaster/orm/migrations/0015_layer_local_source_dir.py
new file mode 100644
index 0000000..9539cd7
--- /dev/null
+++ b/bitbake/lib/toaster/orm/migrations/0015_layer_local_source_dir.py
@@ -0,0 +1,19 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('orm', '0014_allow_empty_buildname'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='layer',
+ name='local_source_dir',
+ field=models.TextField(null=True, default=None),
+ ),
+ ]
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index 1c9f3a9..432b51e 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -1353,6 +1353,7 @@ class Layer(models.Model):
name = models.CharField(max_length=100)
layer_index_url = models.URLField()
vcs_url = GitURLField(default=None, null=True)
+ local_source_dir = models.TextField(null = True, default = None)
vcs_web_url = models.URLField(null=True, default=None)
vcs_web_tree_base_url = models.URLField(null=True, default=None)
vcs_web_file_base_url = models.URLField(null=True, default=None)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]