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:51 +0000 |
commit | 451f2d083d6c05454d2c3366bd09c7fb13fd8e47 (patch) | |
tree | d87e817cf4b20589819916eef3a7d8d0bf42f4f0 /meta/classes | |
parent | ccde53bfa7696eba6f13eab19c38793e81d64f8b (diff) | |
download | poky-451f2d083d6c05454d2c3366bd09c7fb13fd8e47.tar.gz |
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
(From OE-Core rev: 5aa52c6882d2929b2e530c4fa297c6d3e97d4f9f)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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 | |||
139 | 139 | ||
140 | 140 | ||
141 | packages = d.getVar('PACKAGES', True).split() | 141 | packages = d.getVar('PACKAGES', True).split() |
142 | split_packages = [] | ||
142 | 143 | ||
143 | if postinst: | 144 | if postinst: |
144 | postinst = '#!/bin/sh\n' + postinst + '\n' | 145 | postinst = '#!/bin/sh\n' + postinst + '\n' |
@@ -172,6 +173,7 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst | |||
172 | continue | 173 | continue |
173 | on = legitimize_package_name(m.group(1)) | 174 | on = legitimize_package_name(m.group(1)) |
174 | pkg = output_pattern % on | 175 | pkg = output_pattern % on |
176 | split_packages.append(pkg) | ||
175 | if not pkg in packages: | 177 | if not pkg in packages: |
176 | if prepend: | 178 | if prepend: |
177 | packages = [pkg] + packages | 179 | packages = [pkg] + packages |
@@ -206,6 +208,7 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst | |||
206 | hook(f, pkg, file_regex, output_pattern, m.group(1)) | 208 | hook(f, pkg, file_regex, output_pattern, m.group(1)) |
207 | 209 | ||
208 | d.setVar('PACKAGES', ' '.join(packages)) | 210 | d.setVar('PACKAGES', ' '.join(packages)) |
211 | return split_packages | ||
209 | 212 | ||
210 | PACKAGE_DEPENDS += "file-native" | 213 | PACKAGE_DEPENDS += "file-native" |
211 | 214 | ||