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 03C5C77346; Wed, 3 Feb 2016 11:22:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id u13BMgDt005422; Wed, 3 Feb 2016 11:22:42 GMT 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 0fRvi8-Z5BPU; Wed, 3 Feb 2016 11:22:42 +0000 (GMT) Received: from hex ([192.168.3.34]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id u13BMasD005414 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 3 Feb 2016 11:22:37 GMT Message-ID: <1454498556.27087.180.camel@linuxfoundation.org> From: Richard Purdie To: Otavio Salvador Date: Wed, 03 Feb 2016 11:22:36 +0000 In-Reply-To: References: <1454457340.27087.143.camel@linuxfoundation.org> X-Mailer: Evolution 3.16.5-1ubuntu3.1 Mime-Version: 1.0 Cc: openembedded-architecture , bitbake-devel Subject: Re: [Openembedded-architecture] [PATCH] data_smart: Drop default expand=False to getVar [API change] X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Feb 2016 11:22:43 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Wed, 2016-02-03 at 08:11 -0200, Otavio Salvador wrote: > On Tue, Feb 2, 2016 at 9:55 PM, Richard Purdie > wrote: > > At some point in the future, getVar should expand by default. To > > get > > there from the current position, we need a period of time where the > > expand parameter is mandatory. > > > > This patch starts that process. Clear errors will result from any > > code > > which doesn't provide this. Layers can be fixed with an expression > > like: > > > > sed -e 's:\(\.getVar([^,()]*, [^,()]*\)):\1, False):g' -i `grep > > -ril getVar *` > > > > Signed-off-by: Richard Purdie > > I am in favor of making it mandatory but I fail to see what we gain > in making it expand by default in future. Less ugly syntax, in 99.9% of usages, you would want expand=True and getVar("X") is neater than getVar("X", True). Cheers, Richard