summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-06-29 16:01:37 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-02 22:56:38 +0100
commit3b3ef9cee2469b22b5946e84ab80eb5d3d2a3cdb (patch)
tree5220b058f3b198a231591f856dd0afc19e43a4f7 /bitbake/lib/toaster
parentd73a813aa2284d8885c9f670e8ed076dbafa3336 (diff)
downloadpoky-3b3ef9cee2469b22b5946e84ab80eb5d3d2a3cdb.tar.gz
bitbake: toaster: Partial Revert "fixes after html5 compliance testing"
Partial revert of bb commit 7aecb974d44d9bc711ffba5cc65e770811397fba There were changes in this commit which broke the compatible layers mechanism meaning that no layers, recipes or machines were showing. (Bitbake rev: 124157b567469639c6c839233f42049a093ba083) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster')
-rw-r--r--bitbake/lib/toaster/orm/models.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index 7e8ab16cf5..4ea75f2bf3 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -180,9 +180,8 @@ class Project(models.Model):
180 if release == None: 180 if release == None:
181 release = self.release 181 release = self.release
182 # layers on the same branch or layers specifically set for this project 182 # layers on the same branch or layers specifically set for this project
183 queryset = Layer_Version.objects.filter(Q(project = self) | Q(build__project = self)) 183 queryset = Layer_Version.objects.filter((Q(up_branch__name = release.branch_name) & Q(project = None)) | Q(project = self) | Q(build__project = self))
184 if release is not None: 184
185 queryset = queryset.filter(Q(up_branch__name = release.branch_name) & Q(project = None))
186 if layer_name is not None: 185 if layer_name is not None:
187 # we select only a layer name 186 # we select only a layer name
188 queryset = queryset.filter(layer__name = layer_name) 187 queryset = queryset.filter(layer__name = layer_name)