The parsing condition was broken causing the packages not being
expanded to include <PN>-systemd packages automatically.

Signed-off-by: Otavio Salvador <[email protected]>
---
 meta-oe/classes/systemd.bbclass |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/meta-oe/classes/systemd.bbclass b/meta-oe/classes/systemd.bbclass
index 0329b90..2c795fa 100644
--- a/meta-oe/classes/systemd.bbclass
+++ b/meta-oe/classes/systemd.bbclass
@@ -66,11 +66,10 @@ def systemd_after_parse(d):
 
 
        bpn = d.getVar('BPN', 1)
-       # not for native / only at parse time
-       if d.getVar('BB_WORKERCONTEXT', True) is None and \
-       bpn + "-native" != d.getVar('PN', 1) and \
-       bpn + "-cross" != d.getVar('PN', 1) and \
-       bpn + "-nativesdk" != d.getVar('PN', 1):
+       if d.getVar('BB_WORKERCONTEXT', True) is not None and \
+                   bpn + "-native" != d.getVar('PN', 1) and \
+                   bpn + "-cross" != d.getVar('PN', 1) and \
+                   bpn + "-nativesdk" != d.getVar('PN', 1):
                systemd_check_vars()
                for pkg_systemd in d.getVar('SYSTEMD_PACKAGES', 1).split():
                        systemd_create_package(pkg_systemd)
-- 
1.7.2.5


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to