All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Wood <michael.g.wood@intel.com>
To: "Barros Pena, Belen" <belen.barros.pena@intel.com>,
	"toaster@yoctoproject.org" <toaster@yoctoproject.org>
Subject: Re: [PATCH] toaster: models List only have the specified project's imported layers
Date: Tue, 8 Mar 2016 20:11:01 +0000	[thread overview]
Message-ID: <56DF31D5.2060400@intel.com> (raw)
In-Reply-To: <D2EA0055.740B6%belen.barros.pena@intel.com>

Don't think this has been upstreamed yet

On 17/02/16 09:48, Barros Pena, Belen wrote:
>
> On 16/02/2016 11:25, "toaster-bounces@yoctoproject.org on behalf of
> Michael Wood" <toaster-bounces@yoctoproject.org on behalf of
> michael.g.wood@intel.com> wrote:
>
>> 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]
> I can no longer reproduce the problem in 8944 with this patch, and I can
> happily import a layer with the same name to a different project.
>
> Thanks!
>
> Belén
>
>> Signed-off-by: Michael Wood <michael.g.wood@intel.com>
>> ---
>> bitbake/lib/toaster/orm/models.py | 6 ++++--
>> 1 file changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/bitbake/lib/toaster/orm/models.py
>> b/bitbake/lib/toaster/orm/models.py
>> index ab6940f..50f703c 100644
>> --- a/bitbake/lib/toaster/orm/models.py
>> +++ b/bitbake/lib/toaster/orm/models.py
>> @@ -259,8 +259,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
>>
>> -- 
>> 2.1.4
>>
>> -- 
>> _______________________________________________
>> toaster mailing list
>> toaster@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/toaster



  reply	other threads:[~2016-03-08 20:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-16 10:25 [PATCH] toaster: models List only have the specified project's imported layers Michael Wood
2016-02-17  9:48 ` Barros Pena, Belen
2016-03-08 20:11   ` Michael Wood [this message]
2016-03-09 13:04     ` Smith, Elliot
  -- strict thread matches above, loose matches on Subject: below --
2016-03-09 13:01 Elliot Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56DF31D5.2060400@intel.com \
    --to=michael.g.wood@intel.com \
    --cc=belen.barros.pena@intel.com \
    --cc=toaster@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.