From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id 119DB70210 for ; Fri, 11 Jul 2014 17:41:05 +0000 (UTC) Received: from localhost (dan.rpsys.net [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-2.1ubuntu4) with ESMTP id s6BHf0bq014409; Fri, 11 Jul 2014 18:41:00 +0100 X-Virus-Scanned: Debian amavisd-new at dan.rpsys.net Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MJl9O4-Lvlon; Fri, 11 Jul 2014 18:41:00 +0100 (BST) Received: from [192.168.3.10] (rpvlan0 [192.168.3.10]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-2.1ubuntu1) with ESMTP id s6BHersN014398 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 11 Jul 2014 18:40:55 +0100 Message-ID: <1405100448.21289.88.camel@ted> From: Richard Purdie To: Otavio Salvador Date: Fri, 11 Jul 2014 18:40:48 +0100 In-Reply-To: References: <1404936934.15985.48.camel@ted> <1405067225.15985.89.camel@ted> <1405084930.21289.7.camel@ted> X-Mailer: Evolution 3.8.4-0ubuntu1 Mime-Version: 1.0 Cc: "meta-freescale@yoctoproject.org" , openembedded-core Subject: Re: [PATCH RFC 1/3] insane: Split do_package_qa into a separate task (from do_package) X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jul 2014 17:41:08 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Fri, 2014-07-11 at 13:46 -0300, Otavio Salvador wrote: > On Fri, Jul 11, 2014 at 10:22 AM, Richard Purdie > wrote: > > On Fri, 2014-07-11 at 09:14 -0300, Otavio Salvador wrote: > ... > >> > I would not recommend setting variables in function prepends like this, > >> > its ugly and error prone, as you've just found out. > >> > >> Any suggested better way of to do it? > > > > The anonymous python fragment should be fine, it sets the data at the > > right level, the global recipe level rather than burying it in some > > task. > > and in case we need to do it for the packages split from the > do_package_split? Use the hook mechanism? That will not work, if you set data in the do_package task, the do_package_q task cannot see it. You'd probably have to add a prefunc to do_package_qa to set the right skip variables if you needed to that since the package names wouldn't be known until then. Cheers, Richard