toaster: models List only have the specified project's imported layers
PATCH 1/1 toaster: models List only have the specified project's imported layers
From: Michael Wood <[email protected]>
When returning the compatible layers make sure that we are only
listing: All the layers which are for this release && configuration layers (i.e. aren't part of the build history) and which aren't an imported layer OR are this project's imported layer(s).
[YOCTO #8944]
Signed-off-by Michael Wood <[email protected]>
Signed-off-by Elliot Smith <[email protected]>
--- bitbake/lib/toaster/orm/models.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
bitbake/lib/toaster/orm/models.py +4 -2
@@ -262,8 +262,10 @@ class Project(models.Model): """ Returns Queryset of all Layer_Versions which are compatible with this project""" queryset = Layer_Version.objects.filter( - (Q(up_branch__name=self.release.branch_name) & Q(build=None)) - | Q(project=self)) + (Q(up_branch__name=self.release.branch_name) & + Q(build=None) & + Q(project=None)) | + Q(project=self)) return queryset
Signature · 12 lines
1.9.1 --------------------------------------------------------------------- Intel Corporation (UK) Limited Registered No. 1134945 (England) Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.