diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2013-02-06 01:56:14 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-06 13:16:02 +0000 |
commit | 5aa52c6882d2929b2e530c4fa297c6d3e97d4f9f (patch) | |
tree | 9c12d9573e177d00f29dd2b483c7c47f1298fbd7 /meta/classes/package.bbclass | |
parent | 027dc0ec80b570c79f4adb0deabb63bcf3c49b78 (diff) | |
download | openembedded-core-5aa52c6882d2929b2e530c4fa297c6d3e97d4f9f.tar.gz openembedded-core-5aa52c6882d2929b2e530c4fa297c6d3e97d4f9f.tar.bz2 openembedded-core-5aa52c6882d2929b2e530c4fa297c6d3e97d4f9f.zip |
package.bbclass: return list of packages created in do_split_packages
* sometimes it's useful to do something with packages created
by do_split_packages later in do_package_prepend, e.g. in:
http://lists.linuxtogo.org/pipermail/openembedded-devel/2013-February/043824.html
I have .bbclass which adds some postinst, postrm and RDEPENDS,
but ttf-mplus is using do_split_packages to create those packages
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r-- | meta/classes/package.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index e5d444b161..a78f11130f 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -139,6 +139,7 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst packages = d.getVar('PACKAGES', True).split() + split_packages = [] if postinst: postinst = '#!/bin/sh\n' + postinst + '\n' @@ -172,6 +173,7 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst continue on = legitimize_package_name(m.group(1)) pkg = output_pattern % on + split_packages.append(pkg) if not pkg in packages: if prepend: packages = [pkg] + packages @@ -206,6 +208,7 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst hook(f, pkg, file_regex, output_pattern, m.group(1)) d.setVar('PACKAGES', ' '.join(packages)) + return split_packages PACKAGE_DEPENDS += "file-native" |