]> code.ossystems Code Review - openembedded-core.git/commitdiff
update-rc.d.bbclass: fix inhibit check
authorKai Kang <kai.kang@windriver.com>
Thu, 20 Feb 2014 02:11:09 +0000 (10:11 +0800)
committerSaul Wold <sgw@linux.intel.com>
Fri, 21 Feb 2014 04:06:22 +0000 (20:06 -0800)
In update-rc.d.bbclass it checks variable INHIBIT_UPDATERCD_BBCLASS to
inhibit from inheriting this class. But it is wrong logic that when
'sysvinit' is in 'DISTRO_FEATURES', INHIBIT_UPDATERCD_BBCLASS will not
be checked.

Replace 'or' with 'and' to fix it.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/update-rc.d.bbclass

index 4b92d8d6f14e14ecdff4b12f0aa5901893886d03..0ac2af7d973916a25d5330bfc66f834789ef7349 100644 (file)
@@ -117,7 +117,7 @@ python populate_packages_updatercd () {
 
     # Check that this class isn't being inhibited (generally, by
     # systemd.bbclass) before doing any work.
-    if oe.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d) or \
+    if oe.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d) and \
        not d.getVar("INHIBIT_UPDATERCD_BBCLASS", True):
         pkgs = d.getVar('INITSCRIPT_PACKAGES', True)
         if pkgs == None: