Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 83838E009C3; Mon, 22 Feb 2016 05:51:29 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 0FC5EE008C6 for ; Mon, 22 Feb 2016 05:51:26 -0800 (PST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP; 22 Feb 2016 05:51:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,484,1449561600"; d="scan'208";a="52454769" Received: from irsmsx106.ger.corp.intel.com ([163.33.3.31]) by fmsmga004.fm.intel.com with ESMTP; 22 Feb 2016 05:51:21 -0800 Received: from irsmsx111.ger.corp.intel.com (10.108.20.4) by IRSMSX106.ger.corp.intel.com (163.33.3.31) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 22 Feb 2016 13:48:01 +0000 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.31]) by irsmsx111.ger.corp.intel.com ([169.254.2.198]) with mapi id 14.03.0248.002; Mon, 22 Feb 2016 13:48:01 +0000 From: "Barros Pena, Belen" To: "Lerner, David M (Wind River)" , "toaster@yoctoproject.org" , "Wood, Michael G" Thread-Topic: [Toaster] [PATCH 1/1] toaster: remove custom images from Image Recipes Thread-Index: AQHRbXelk3sq/BGOXUqiY5VwLcztjg== Date: Mon, 22 Feb 2016 13:48:00 +0000 Message-ID: References: <1455921136-26353-1-git-send-email-dave.lerner@windriver.com> <1455921136-26353-2-git-send-email-dave.lerner@windriver.com> In-Reply-To: <1455921136-26353-2-git-send-email-dave.lerner@windriver.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.6.1.160122 x-originating-ip: [10.252.14.74] MIME-Version: 1.0 Subject: Re: [PATCH 1/1] toaster: remove custom images from Image Recipes X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Feb 2016 13:51:29 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <9C0095ABD1553047872D22F6A6999AB1@intel.com> Content-Transfer-Encoding: quoted-printable On 19/02/2016 23:32, "toaster-bounces@yoctoproject.org on behalf of Dave Lerner" wrote: >Fix the view of Image Recipes under Configuration to only show image >recipes that are not customised, since custom images have their own >page > >Signed-off-by: Dave Lerner >--- > bitbake/lib/toaster/toastergui/tables.py | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/bitbake/lib/toaster/toastergui/tables.py >b/bitbake/lib/toaster/toastergui/tables.py >index 86d111d..50a18e7 100644 >--- a/bitbake/lib/toaster/toastergui/tables.py >+++ b/bitbake/lib/toaster/toastergui/tables.py >@@ -549,7 +549,9 @@ class ImageRecipesTable(RecipesTable): > def setup_queryset(self, *args, **kwargs): > super(ImageRecipesTable, self).setup_queryset(*args, **kwargs) >=20 >- self.queryset =3D self.queryset.filter(is_image=3DTrue) >+ custom_image_recipes =3D CustomImageRecipe.objects.all() >+ self.queryset =3D self.queryset.filter( >+ Q(is_image=3DTrue) & ~Q(pk__in=3Dcustom_image_recipes)) > self.queryset =3D self.queryset.order_by(self.default_orderby) This patch removes the custom images from the compatible image recipes list (as requested by issue 9111), but also from the new custom image page. I think it might be useful to be able to create custom images selecting a custom image as your base image (for example, I might want to create a minimal-belen-dev from my minimal-belen custom image). If this is something we'd like to keep, we would need to modify the patch to remove the custom images from the compatible image recipes list, but not from the new custom image page. Thanks! Bel=E9n >=20 >=20 >--=20 >1.9.1 > >--=20 >_______________________________________________ >toaster mailing list >toaster@yoctoproject.org >https://lists.yoctoproject.org/listinfo/toaster