aboutsummaryrefslogtreecommitdiffstats
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:55:39 +0100
commit124157b567469639c6c839233f42049a093ba083 (patch)
treed0c1019ac0b532643210d6375f357915cbbd3499
parent344b098c7eafc2bcc5c6b44ea47985bc0cb446b5 (diff)
downloadbitbake-124157b567469639c6c839233f42049a093ba083.tar.gz
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. Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/toaster/orm/models.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/toaster/orm/models.py b/lib/toaster/orm/models.py
index 7e8ab16cf..4ea75f2bf 100644
--- a/lib/toaster/orm/models.py
+++ b/lib/toaster/orm/models.py
@@ -180,9 +180,8 @@ class Project(models.Model):
if release == None:
release = self.release
# layers on the same branch or layers specifically set for this project
- queryset = Layer_Version.objects.filter(Q(project = self) | Q(build__project = self))
- if release is not None:
- queryset = queryset.filter(Q(up_branch__name = release.branch_name) & Q(project = None))
+ queryset = Layer_Version.objects.filter((Q(up_branch__name = release.branch_name) & Q(project = None)) | Q(project = self) | Q(build__project = self))
+
if layer_name is not None:
# we select only a layer name
queryset = queryset.filter(layer__name = layer_name)