]> code.ossystems Code Review - openembedded-core.git/commitdiff
useradd.bbclass: do not modify -nativesdk packages
authorScott Garman <scott.a.garman@intel.com>
Wed, 9 Nov 2011 02:40:28 +0000 (18:40 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 10 Nov 2011 11:35:30 +0000 (11:35 +0000)
Exclude the addition of user/group code and RDEPENDS changes for
-nativesdk packages.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
meta/classes/useradd.bbclass

index 3b2d1dbfe82975ad5a3de3775cf8d95e40c974dc..64d6861644fcc74a67fda159f3fe1f63cc773e6a 100644 (file)
@@ -153,10 +153,11 @@ fakeroot python populate_packages_prepend () {
                rdepends = d.getVar("RDEPENDS_%s" % pkg, True) or ""
                rdepends += " base-passwd shadow"
                bb.data.setVar("RDEPENDS_%s" % pkg, rdepends, d)
-       
+
        # Add the user/group preinstall scripts and RDEPENDS requirements
        # to packages specified by USERADD_PACKAGES
-       useradd_packages = d.getVar('USERADD_PACKAGES', True) or ""
-       for pkg in useradd_packages.split():
-               update_useradd_package(pkg)
+       if not bb.data.inherits_class('nativesdk', d):
+               useradd_packages = d.getVar('USERADD_PACKAGES', True) or ""
+               for pkg in useradd_packages.split():
+                       update_useradd_package(pkg)
 }