diff options
author | Andreas Müller <schnitzeltony@googlemail.com> | 2012-02-22 14:00:10 +0100 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-02-23 16:46:31 +0100 |
commit | 916b26ef7d8c3779616763ceca144380bd6c058c (patch) | |
tree | 917b23c9087d470a41f140bb6322afc156e98d52 /meta-oe/classes | |
parent | 450417617adf21de5ba01a06294515a51939ea75 (diff) | |
download | meta-openembedded-916b26ef7d8c3779616763ceca144380bd6c058c.tar.gz |
systemd.bbclass: run code in populate_packages_prepend only if ${D} exists
All further manipulations need to be performed only once. This modication
avoids unwanted behaviour when inheriting rm_work.bbclass [1]
[1] http://lists.linuxtogo.org/pipermail/openembedded-devel/2012-February/038067.html
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/classes')
-rw-r--r-- | meta-oe/classes/systemd.bbclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta-oe/classes/systemd.bbclass b/meta-oe/classes/systemd.bbclass index b2d4191d1..e13f09dc3 100644 --- a/meta-oe/classes/systemd.bbclass +++ b/meta-oe/classes/systemd.bbclass | |||
@@ -127,6 +127,8 @@ python populate_packages_prepend () { | |||
127 | bb.data.setVar('RDEPENDS_' + pkg, " " + " ".join(rdepends), d) | 127 | bb.data.setVar('RDEPENDS_' + pkg, " " + " ".join(rdepends), d) |
128 | 128 | ||
129 | 129 | ||
130 | for pkg_systemd in d.getVar('SYSTEMD_PACKAGES', 1).split(): | 130 | # run all modifications once when creating package |
131 | systemd_generate_package_scripts(pkg_systemd) | 131 | if os.path.exists('${D}'): |
132 | for pkg_systemd in d.getVar('SYSTEMD_PACKAGES', 1).split(): | ||
133 | systemd_generate_package_scripts(pkg_systemd) | ||
132 | } | 134 | } |