]> code.ossystems Code Review - openembedded-core.git/commitdiff
package.bbclass: Add data expansion to do_split_packages()
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 2 Feb 2016 13:52:38 +0000 (13:52 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 4 Feb 2016 23:33:12 +0000 (23:33 +0000)
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 <richard.purdie@linuxfoundation.org>
meta/classes/package.bbclass

index fdcf5ff179e048a111e831d80a5013c75dee5091..854591bb7d6762d4a007b741ef89c3797b4bec41 100644 (file)
@@ -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.