diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/toaster/orm/fixtures/oe-core.xml | 3 | ||||
-rw-r--r-- | bitbake/lib/toaster/orm/fixtures/poky.xml | 9 | ||||
-rw-r--r-- | bitbake/lib/toaster/orm/management/commands/lsupdates.py | 2 |
3 files changed, 14 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/orm/fixtures/oe-core.xml b/bitbake/lib/toaster/orm/fixtures/oe-core.xml index e285ec6ed3..66c3595f8c 100644 --- a/bitbake/lib/toaster/orm/fixtures/oe-core.xml +++ b/bitbake/lib/toaster/orm/fixtures/oe-core.xml | |||
@@ -65,6 +65,9 @@ | |||
65 | <object model="orm.layer" pk="1"> | 65 | <object model="orm.layer" pk="1"> |
66 | <field type="CharField" name="name">openembedded-core</field> | 66 | <field type="CharField" name="name">openembedded-core</field> |
67 | <field type="CharField" name="vcs_url">git://git.openembedded.org/openembedded-core</field> | 67 | <field type="CharField" name="vcs_url">git://git.openembedded.org/openembedded-core</field> |
68 | <field type="CharField" name="vcs_web_url">http://cgit.openembedded.org/openembedded-core</field> | ||
69 | <field type="CharField" name="vcs_web_tree_base_url">http://cgit.openembedded.org/openembedded-core/tree/%path%?h=%branch%</field> | ||
70 | <field type="CharField" name="vcs_web_file_base_url">http://cgit.openembedded.org/openembedded-core/tree/%path%?h=%branch%</field> | ||
68 | </object> | 71 | </object> |
69 | <object model="orm.layer_version" pk="1"> | 72 | <object model="orm.layer_version" pk="1"> |
70 | <field rel="ManyToOneRel" to="orm.layer" name="layer">1</field> | 73 | <field rel="ManyToOneRel" to="orm.layer" name="layer">1</field> |
diff --git a/bitbake/lib/toaster/orm/fixtures/poky.xml b/bitbake/lib/toaster/orm/fixtures/poky.xml index b3f6c9634c..7827aac289 100644 --- a/bitbake/lib/toaster/orm/fixtures/poky.xml +++ b/bitbake/lib/toaster/orm/fixtures/poky.xml | |||
@@ -97,6 +97,9 @@ | |||
97 | <field type="CharField" name="name">openembedded-core</field> | 97 | <field type="CharField" name="name">openembedded-core</field> |
98 | <field type="CharField" name="layer_index_url"></field> | 98 | <field type="CharField" name="layer_index_url"></field> |
99 | <field type="CharField" name="vcs_url">git://git.yoctoproject.org/poky</field> | 99 | <field type="CharField" name="vcs_url">git://git.yoctoproject.org/poky</field> |
100 | <field type="CharField" name="vcs_web_url">http://git.yoctoproject.org/cgit/cgit.cgi/poky</field> | ||
101 | <field type="CharField" name="vcs_web_tree_base_url">http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch%</field> | ||
102 | <field type="CharField" name="vcs_web_file_base_url">http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch%</field> | ||
100 | </object> | 103 | </object> |
101 | <object model="orm.layer_version" pk="1"> | 104 | <object model="orm.layer_version" pk="1"> |
102 | <field rel="ManyToOneRel" to="orm.layer" name="layer">1</field> | 105 | <field rel="ManyToOneRel" to="orm.layer" name="layer">1</field> |
@@ -125,6 +128,9 @@ | |||
125 | <field type="CharField" name="name">meta-poky</field> | 128 | <field type="CharField" name="name">meta-poky</field> |
126 | <field type="CharField" name="layer_index_url"></field> | 129 | <field type="CharField" name="layer_index_url"></field> |
127 | <field type="CharField" name="vcs_url">git://git.yoctoproject.org/poky</field> | 130 | <field type="CharField" name="vcs_url">git://git.yoctoproject.org/poky</field> |
131 | <field type="CharField" name="vcs_web_url">http://git.yoctoproject.org/cgit/cgit.cgi/poky</field> | ||
132 | <field type="CharField" name="vcs_web_tree_base_url">http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch%</field> | ||
133 | <field type="CharField" name="vcs_web_file_base_url">http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch%</field> | ||
128 | </object> | 134 | </object> |
129 | <object model="orm.layer_version" pk="4"> | 135 | <object model="orm.layer_version" pk="4"> |
130 | <field rel="ManyToOneRel" to="orm.layer" name="layer">2</field> | 136 | <field rel="ManyToOneRel" to="orm.layer" name="layer">2</field> |
@@ -153,6 +159,9 @@ | |||
153 | <field type="CharField" name="name">meta-yocto-bsp</field> | 159 | <field type="CharField" name="name">meta-yocto-bsp</field> |
154 | <field type="CharField" name="layer_index_url"></field> | 160 | <field type="CharField" name="layer_index_url"></field> |
155 | <field type="CharField" name="vcs_url">git://git.yoctoproject.org/poky</field> | 161 | <field type="CharField" name="vcs_url">git://git.yoctoproject.org/poky</field> |
162 | <field type="CharField" name="vcs_web_url">http://git.yoctoproject.org/cgit/cgit.cgi/poky</field> | ||
163 | <field type="CharField" name="vcs_web_tree_base_url">http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch%</field> | ||
164 | <field type="CharField" name="vcs_web_file_base_url">http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch%</field> | ||
156 | </object> | 165 | </object> |
157 | <object model="orm.layer_version" pk="7"> | 166 | <object model="orm.layer_version" pk="7"> |
158 | <field rel="ManyToOneRel" to="orm.layer" name="layer">3</field> | 167 | <field rel="ManyToOneRel" to="orm.layer" name="layer">3</field> |
diff --git a/bitbake/lib/toaster/orm/management/commands/lsupdates.py b/bitbake/lib/toaster/orm/management/commands/lsupdates.py index 68c6c423d8..482908d483 100644 --- a/bitbake/lib/toaster/orm/management/commands/lsupdates.py +++ b/bitbake/lib/toaster/orm/management/commands/lsupdates.py | |||
@@ -160,6 +160,8 @@ class Command(NoArgsCommand): | |||
160 | l.description = li['description'] | 160 | l.description = li['description'] |
161 | 161 | ||
162 | if created: | 162 | if created: |
163 | # predefined layers in the fixtures (for example poky.xml) | ||
164 | # always preempt the Layer Index for these values | ||
163 | l.vcs_url = li['vcs_url'] | 165 | l.vcs_url = li['vcs_url'] |
164 | l.vcs_web_url = li['vcs_web_url'] | 166 | l.vcs_web_url = li['vcs_web_url'] |
165 | l.vcs_web_tree_base_url = li['vcs_web_tree_base_url'] | 167 | l.vcs_web_tree_base_url = li['vcs_web_tree_base_url'] |