* 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>
packages = d.getVar('PACKAGES', True).split()
+ split_packages = []
if postinst:
postinst = '#!/bin/sh\n' + postinst + '\n'
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
hook(f, pkg, file_regex, output_pattern, m.group(1))
d.setVar('PACKAGES', ' '.join(packages))
+ return split_packages
PACKAGE_DEPENDS += "file-native"