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 AC29C77145 for ; Tue, 2 Feb 2016 13:52: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 u12DqhUG003530 for ; Tue, 2 Feb 2016 13:52:43 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 amW7WLu63jYl for ; Tue, 2 Feb 2016 13:52:43 +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 u12DqcrM003483 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 2 Feb 2016 13:52:39 GMT Message-ID: <1454421158.27087.59.camel@linuxfoundation.org> From: Richard Purdie To: openembedded-core Date: Tue, 02 Feb 2016 13:52:38 +0000 X-Mailer: Evolution 3.16.5-1ubuntu3.1 Mime-Version: 1.0 Subject: [PATCH] package.bbclass: Add data expansion to do_split_packages() 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: Tue, 02 Feb 2016 13:52:45 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit do_split_packages is often called with parameters which need expansion. This happens to work at the moment since python functions are expanded before execution but likely will not happen in future and isn't good code practise. Expand the common parameters do_split_packages() to avoid regressions. Signed-off-by: Richard Purdie diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index fdcf5ff..854591b 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -121,6 +121,8 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst """ dvar = d.getVar('PKGD', True) + root = d.expand(root) + output_pattern = d.expand(output_pattern) # If the root directory doesn't exist, don't error out later but silently do # no splitting.