summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-07-28 15:24:45 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-01 11:29:35 +0100
commit7f4eb55d704716ca95db22f85367db8bdfec456b (patch)
tree042293bcc8b565459b90889c346788aea2a7d70d /bitbake
parent9be8ea632c2bdd9acc4d9212c7f2871f8c2575a8 (diff)
downloadpoky-7f4eb55d704716ca95db22f85367db8bdfec456b.tar.gz
bitbake: bitbake: toaster: Add is_image field to the Recipe model
Added new field is_image to the Recipe model. Made sure is_image is populated when layer sources are imported. Made sure the change doesn't break loading old style layer sources. Tested by loading data from layers.pythonanywhere.com and from layers.openembedded.org. [YOCTO: #7571] (Bitbake rev: 3ac0ba73790b8f68567daa2de313c78053411fbb) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/orm/migrations/0024_auto__add_field_recipe_is_image.py338
-rw-r--r--bitbake/lib/toaster/orm/models.py3
2 files changed, 341 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/orm/migrations/0024_auto__add_field_recipe_is_image.py b/bitbake/lib/toaster/orm/migrations/0024_auto__add_field_recipe_is_image.py
new file mode 100644
index 0000000000..88f60a946e
--- /dev/null
+++ b/bitbake/lib/toaster/orm/migrations/0024_auto__add_field_recipe_is_image.py
@@ -0,0 +1,338 @@
1# -*- coding: utf-8 -*-
2from south.utils import datetime_utils as datetime
3from south.db import db
4from south.v2 import SchemaMigration
5from django.db import models
6
7
8class Migration(SchemaMigration):
9
10 def forwards(self, orm):
11 # Adding field 'Recipe.is_image'
12 db.add_column(u'orm_recipe', 'is_image',
13 self.gf('django.db.models.fields.BooleanField')(default=False),
14 keep_default=False)
15
16
17 def backwards(self, orm):
18 # Deleting field 'Recipe.is_image'
19 db.delete_column(u'orm_recipe', 'is_image')
20
21
22 models = {
23 u'orm.bitbakeversion': {
24 'Meta': {'object_name': 'BitbakeVersion'},
25 'branch': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
26 'dirpath': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
27 'giturl': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
28 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
29 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '32'})
30 },
31 u'orm.branch': {
32 'Meta': {'unique_together': "(('layer_source', 'name'), ('layer_source', 'up_id'))", 'object_name': 'Branch'},
33 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
34 'layer_source': ('django.db.models.fields.related.ForeignKey', [], {'default': 'True', 'to': u"orm['orm.LayerSource']", 'null': 'True'}),
35 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
36 'short_description': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
37 'up_date': ('django.db.models.fields.DateTimeField', [], {'default': 'None', 'null': 'True'}),
38 'up_id': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True'})
39 },
40 u'orm.build': {
41 'Meta': {'object_name': 'Build'},
42 'bitbake_version': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
43 'build_name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
44 'completed_on': ('django.db.models.fields.DateTimeField', [], {}),
45 'cooker_log_path': ('django.db.models.fields.CharField', [], {'max_length': '500'}),
46 'distro': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
47 'distro_version': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
48 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
49 'machine': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
50 'outcome': ('django.db.models.fields.IntegerField', [], {'default': '2'}),
51 'project': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Project']"}),
52 'started_on': ('django.db.models.fields.DateTimeField', [], {})
53 },
54 u'orm.buildartifact': {
55 'Meta': {'object_name': 'BuildArtifact'},
56 'build': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Build']"}),
57 'file_name': ('django.db.models.fields.FilePathField', [], {'max_length': '100'}),
58 'file_size': ('django.db.models.fields.IntegerField', [], {}),
59 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
60 },
61 u'orm.helptext': {
62 'Meta': {'object_name': 'HelpText'},
63 'area': ('django.db.models.fields.IntegerField', [], {}),
64 'build': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'helptext_build'", 'to': u"orm['orm.Build']"}),
65 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
66 'key': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
67 'text': ('django.db.models.fields.TextField', [], {})
68 },
69 u'orm.layer': {
70 'Meta': {'unique_together': "(('layer_source', 'up_id'), ('layer_source', 'name'))", 'object_name': 'Layer'},
71 'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True'}),
72 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
73 'layer_index_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
74 'layer_source': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['orm.LayerSource']", 'null': 'True'}),
75 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
76 'summary': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True'}),
77 'up_date': ('django.db.models.fields.DateTimeField', [], {'default': 'None', 'null': 'True'}),
78 'up_id': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True'}),
79 'vcs_url': ('django.db.models.fields.URLField', [], {'default': 'None', 'max_length': '200', 'null': 'True'}),
80 'vcs_web_file_base_url': ('django.db.models.fields.URLField', [], {'default': 'None', 'max_length': '200', 'null': 'True'}),
81 'vcs_web_tree_base_url': ('django.db.models.fields.URLField', [], {'default': 'None', 'max_length': '200', 'null': 'True'}),
82 'vcs_web_url': ('django.db.models.fields.URLField', [], {'default': 'None', 'max_length': '200', 'null': 'True'})
83 },
84 u'orm.layer_version': {
85 'Meta': {'unique_together': "(('layer_source', 'up_id'),)", 'object_name': 'Layer_Version'},
86 'branch': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
87 'build': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'layer_version_build'", 'null': 'True', 'to': u"orm['orm.Build']"}),
88 'commit': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
89 'dirpath': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '255', 'null': 'True'}),
90 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
91 'layer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'layer_version_layer'", 'to': u"orm['orm.Layer']"}),
92 'layer_source': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['orm.LayerSource']", 'null': 'True'}),
93 'local_path': ('django.db.models.fields.FilePathField', [], {'default': "'/'", 'max_length': '1024'}),
94 'priority': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
95 'project': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['orm.Project']", 'null': 'True'}),
96 'up_branch': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['orm.Branch']", 'null': 'True'}),
97 'up_date': ('django.db.models.fields.DateTimeField', [], {'default': 'None', 'null': 'True'}),
98 'up_id': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True'})
99 },
100 u'orm.layersource': {
101 'Meta': {'unique_together': "(('sourcetype', 'apiurl'),)", 'object_name': 'LayerSource'},
102 'apiurl': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '255', 'null': 'True'}),
103 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
104 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '63'}),
105 'sourcetype': ('django.db.models.fields.IntegerField', [], {})
106 },
107 u'orm.layerversiondependency': {
108 'Meta': {'unique_together': "(('layer_source', 'up_id'),)", 'object_name': 'LayerVersionDependency'},
109 'depends_on': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'dependees'", 'to': u"orm['orm.Layer_Version']"}),
110 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
111 'layer_source': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['orm.LayerSource']", 'null': 'True'}),
112 'layer_version': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'dependencies'", 'to': u"orm['orm.Layer_Version']"}),
113 'up_id': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True'})
114 },
115 u'orm.logmessage': {
116 'Meta': {'object_name': 'LogMessage'},
117 'build': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Build']"}),
118 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
119 'level': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
120 'lineno': ('django.db.models.fields.IntegerField', [], {'null': 'True'}),
121 'message': ('django.db.models.fields.CharField', [], {'max_length': '240'}),
122 'pathname': ('django.db.models.fields.FilePathField', [], {'max_length': '255', 'blank': 'True'}),
123 'task': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Task']", 'null': 'True', 'blank': 'True'})
124 },
125 u'orm.machine': {
126 'Meta': {'unique_together': "(('layer_source', 'up_id'),)", 'object_name': 'Machine'},
127 'description': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
128 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
129 'layer_source': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['orm.LayerSource']", 'null': 'True'}),
130 'layer_version': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Layer_Version']"}),
131 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
132 'up_date': ('django.db.models.fields.DateTimeField', [], {'default': 'None', 'null': 'True'}),
133 'up_id': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True'})
134 },
135 u'orm.package': {
136 'Meta': {'object_name': 'Package'},
137 'build': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Build']"}),
138 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
139 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
140 'installed_name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '100'}),
141 'installed_size': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
142 'license': ('django.db.models.fields.CharField', [], {'max_length': '80', 'blank': 'True'}),
143 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
144 'recipe': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Recipe']", 'null': 'True'}),
145 'revision': ('django.db.models.fields.CharField', [], {'max_length': '32', 'blank': 'True'}),
146 'section': ('django.db.models.fields.CharField', [], {'max_length': '80', 'blank': 'True'}),
147 'size': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
148 'summary': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
149 'version': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'})
150 },
151 u'orm.package_dependency': {
152 'Meta': {'object_name': 'Package_Dependency'},
153 'dep_type': ('django.db.models.fields.IntegerField', [], {}),
154 'depends_on': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_dependencies_target'", 'to': u"orm['orm.Package']"}),
155 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
156 'package': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_dependencies_source'", 'to': u"orm['orm.Package']"}),
157 'target': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Target']", 'null': 'True'})
158 },
159 u'orm.package_file': {
160 'Meta': {'object_name': 'Package_File'},
161 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
162 'package': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'buildfilelist_package'", 'to': u"orm['orm.Package']"}),
163 'path': ('django.db.models.fields.FilePathField', [], {'max_length': '255', 'blank': 'True'}),
164 'size': ('django.db.models.fields.IntegerField', [], {})
165 },
166 u'orm.project': {
167 'Meta': {'object_name': 'Project'},
168 'bitbake_version': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.BitbakeVersion']", 'null': 'True'}),
169 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
170 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
171 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
172 'release': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Release']", 'null': 'True'}),
173 'short_description': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
174 'updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
175 'user_id': ('django.db.models.fields.IntegerField', [], {'null': 'True'})
176 },
177 u'orm.projectlayer': {
178 'Meta': {'unique_together': "(('project', 'layercommit'),)", 'object_name': 'ProjectLayer'},
179 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
180 'layercommit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Layer_Version']", 'null': 'True'}),
181 'optional': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
182 'project': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Project']"})
183 },
184 u'orm.projecttarget': {
185 'Meta': {'object_name': 'ProjectTarget'},
186 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
187 'project': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Project']"}),
188 'target': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
189 'task': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'})
190 },
191 u'orm.projectvariable': {
192 'Meta': {'object_name': 'ProjectVariable'},
193 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
194 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
195 'project': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Project']"}),
196 'value': ('django.db.models.fields.TextField', [], {'blank': 'True'})
197 },
198 u'orm.recipe': {
199 'Meta': {'unique_together': "(('layer_version', 'file_path', 'pathflags'),)", 'object_name': 'Recipe'},
200 'bugtracker': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
201 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
202 'file_path': ('django.db.models.fields.FilePathField', [], {'max_length': '255'}),
203 'homepage': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
204 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
205 'is_image': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
206 'layer_source': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['orm.LayerSource']", 'null': 'True'}),
207 'layer_version': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'recipe_layer_version'", 'to': u"orm['orm.Layer_Version']"}),
208 'license': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
209 'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
210 'pathflags': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
211 'section': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
212 'summary': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
213 'up_date': ('django.db.models.fields.DateTimeField', [], {'default': 'None', 'null': 'True'}),
214 'up_id': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True'}),
215 'version': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'})
216 },
217 u'orm.recipe_dependency': {
218 'Meta': {'object_name': 'Recipe_Dependency'},
219 'dep_type': ('django.db.models.fields.IntegerField', [], {}),
220 'depends_on': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'r_dependencies_depends'", 'to': u"orm['orm.Recipe']"}),
221 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
222 'recipe': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'r_dependencies_recipe'", 'to': u"orm['orm.Recipe']"})
223 },
224 u'orm.release': {
225 'Meta': {'object_name': 'Release'},
226 'bitbake_version': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.BitbakeVersion']"}),
227 'branch_name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '50'}),
228 'description': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
229 'helptext': ('django.db.models.fields.TextField', [], {'null': 'True'}),
230 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
231 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '32'})
232 },
233 u'orm.releasedefaultlayer': {
234 'Meta': {'object_name': 'ReleaseDefaultLayer'},
235 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
236 'layer_name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '100'}),
237 'release': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Release']"})
238 },
239 u'orm.releaselayersourcepriority': {
240 'Meta': {'unique_together': "(('release', 'layer_source'),)", 'object_name': 'ReleaseLayerSourcePriority'},
241 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
242 'layer_source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.LayerSource']"}),
243 'priority': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
244 'release': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Release']"})
245 },
246 u'orm.target': {
247 'Meta': {'object_name': 'Target'},
248 'build': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Build']"}),
249 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
250 'image_size': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
251 'is_image': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
252 'license_manifest_path': ('django.db.models.fields.CharField', [], {'max_length': '500', 'null': 'True'}),
253 'target': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
254 'task': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'})
255 },
256 u'orm.target_file': {
257 'Meta': {'object_name': 'Target_File'},
258 'directory': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'directory_set'", 'null': 'True', 'to': u"orm['orm.Target_File']"}),
259 'group': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
260 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
261 'inodetype': ('django.db.models.fields.IntegerField', [], {}),
262 'owner': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
263 'path': ('django.db.models.fields.FilePathField', [], {'max_length': '100'}),
264 'permission': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
265 'size': ('django.db.models.fields.IntegerField', [], {}),
266 'sym_target': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'symlink_set'", 'null': 'True', 'to': u"orm['orm.Target_File']"}),
267 'target': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Target']"})
268 },
269 u'orm.target_image_file': {
270 'Meta': {'object_name': 'Target_Image_File'},
271 'file_name': ('django.db.models.fields.FilePathField', [], {'max_length': '254'}),
272 'file_size': ('django.db.models.fields.IntegerField', [], {}),
273 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
274 'target': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Target']"})
275 },
276 u'orm.target_installed_package': {
277 'Meta': {'object_name': 'Target_Installed_Package'},
278 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
279 'package': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'buildtargetlist_package'", 'to': u"orm['orm.Package']"}),
280 'target': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Target']"})
281 },
282 u'orm.task': {
283 'Meta': {'ordering': "('order', 'recipe')", 'unique_together': "(('build', 'recipe', 'task_name'),)", 'object_name': 'Task'},
284 'build': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'task_build'", 'to': u"orm['orm.Build']"}),
285 'cpu_usage': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '8', 'decimal_places': '2'}),
286 'disk_io': ('django.db.models.fields.IntegerField', [], {'null': 'True'}),
287 'elapsed_time': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '8', 'decimal_places': '2'}),
288 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
289 'line_number': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
290 'logfile': ('django.db.models.fields.FilePathField', [], {'max_length': '255', 'blank': 'True'}),
291 'message': ('django.db.models.fields.CharField', [], {'max_length': '240'}),
292 'order': ('django.db.models.fields.IntegerField', [], {'null': 'True'}),
293 'outcome': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
294 'path_to_sstate_obj': ('django.db.models.fields.FilePathField', [], {'max_length': '500', 'blank': 'True'}),
295 'recipe': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tasks'", 'to': u"orm['orm.Recipe']"}),
296 'script_type': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
297 'source_url': ('django.db.models.fields.FilePathField', [], {'max_length': '255', 'blank': 'True'}),
298 'sstate_checksum': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
299 'sstate_result': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
300 'task_executed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
301 'task_name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
302 'work_directory': ('django.db.models.fields.FilePathField', [], {'max_length': '255', 'blank': 'True'})
303 },
304 u'orm.task_dependency': {
305 'Meta': {'object_name': 'Task_Dependency'},
306 'depends_on': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'task_dependencies_depends'", 'to': u"orm['orm.Task']"}),
307 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
308 'task': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'task_dependencies_task'", 'to': u"orm['orm.Task']"})
309 },
310 u'orm.toastersetting': {
311 'Meta': {'object_name': 'ToasterSetting'},
312 'helptext': ('django.db.models.fields.TextField', [], {}),
313 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
314 'name': ('django.db.models.fields.CharField', [], {'max_length': '63'}),
315 'value': ('django.db.models.fields.CharField', [], {'max_length': '255'})
316 },
317 u'orm.variable': {
318 'Meta': {'object_name': 'Variable'},
319 'build': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'variable_build'", 'to': u"orm['orm.Build']"}),
320 'changed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
321 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
322 'human_readable_name': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
323 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
324 'variable_name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
325 'variable_value': ('django.db.models.fields.TextField', [], {'blank': 'True'})
326 },
327 u'orm.variablehistory': {
328 'Meta': {'object_name': 'VariableHistory'},
329 'file_name': ('django.db.models.fields.FilePathField', [], {'max_length': '255'}),
330 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
331 'line_number': ('django.db.models.fields.IntegerField', [], {'null': 'True'}),
332 'operation': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
333 'value': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
334 'variable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'vhistory'", 'to': u"orm['orm.Variable']"})
335 }
336 }
337
338 complete_apps = ['orm'] \ No newline at end of file
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index 2b1a5b7905..2d7ef09bb1 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -586,6 +586,7 @@ class Recipe(models.Model):
586 bugtracker = models.URLField(blank=True) 586 bugtracker = models.URLField(blank=True)
587 file_path = models.FilePathField(max_length=255) 587 file_path = models.FilePathField(max_length=255)
588 pathflags = models.CharField(max_length=200, blank=True) 588 pathflags = models.CharField(max_length=200, blank=True)
589 is_image = models.BooleanField(default=False)
589 590
590 def get_layersource_view_url(self): 591 def get_layersource_view_url(self):
591 if self.layer_source is None: 592 if self.layer_source is None:
@@ -938,6 +939,8 @@ class LayerIndexLayerSource(LayerSource):
938 ro.homepage = ri['homepage'] 939 ro.homepage = ri['homepage']
939 ro.bugtracker = ri['bugtracker'] 940 ro.bugtracker = ri['bugtracker']
940 ro.file_path = ri['filepath'] + "/" + ri['filename'] 941 ro.file_path = ri['filepath'] + "/" + ri['filename']
942 if 'inherits' in ri:
943 ro.is_image = 'image' in ri['inherits'].split()
941 ro.save() 944 ro.save()
942 except: 945 except:
943 #print "Duplicate Recipe, ignoring: ", vars(ro) 946 #print "Duplicate Recipe, ignoring: ", vars(ro)