Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 2A999E00B99; Mon, 22 Feb 2016 06:11:28 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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] * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [134.134.136.24 listed in list.dnswl.org] Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id C5279E009C3 for ; Mon, 22 Feb 2016 06:11:24 -0800 (PST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP; 22 Feb 2016 06:11:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,484,1449561600"; d="scan'208";a="657146543" Received: from irsmsx154.ger.corp.intel.com ([163.33.192.96]) by FMSMGA003.fm.intel.com with ESMTP; 22 Feb 2016 06:11:00 -0800 Received: from irsmsx156.ger.corp.intel.com (10.108.20.68) by IRSMSX154.ger.corp.intel.com (163.33.192.96) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 22 Feb 2016 14:10:58 +0000 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.31]) by IRSMSX156.ger.corp.intel.com ([10.108.20.68]) with mapi id 14.03.0248.002; Mon, 22 Feb 2016 14:10:59 +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/BGOXUqiY5VwLcztjp84K4aA Date: Mon, 22 Feb 2016 14:10:58 +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: 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 14:11:28 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <3750D5CBDC7E1F45BFE98E653449CE86@intel.com> Content-Transfer-Encoding: quoted-printable On 22/02/2016 14:48, "Barros Pena, Belen" wrote: > > >On 19/02/2016 23:32, "toaster-bounces@yoctoproject.org on behalf of Dave >Lerner" dave.lerner@windriver.com> 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.=20 Sorry, my mistake: the custom images do appear in the new custom image page. Mondays ... Bel=E9n >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 >