All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] package.bbclass: Add data expansion to do_split_packages()
@ 2016-02-02 13:52 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2016-02-02 13:52 UTC (permalink / raw)
  To: openembedded-core

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>

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.




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-02-02 13:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-02 13:52 [PATCH] package.bbclass: Add data expansion to do_split_packages() Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.