diff options
author | Ionut Radu <ionutx.radu@intel.com> | 2013-07-23 18:07:48 +0300 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2013-07-26 00:07:43 -0700 |
commit | be6d0f398404e4566d4fac145c745899909117f1 (patch) | |
tree | 5af1bb8a33cffc328eb9c2d82d2426041777a574 | |
parent | 64e87fc6e99bc1d4807034166735034b1f92bad8 (diff) | |
download | openembedded-core-be6d0f398404e4566d4fac145c745899909117f1.tar.gz openembedded-core-be6d0f398404e4566d4fac145c745899909117f1.tar.bz2 openembedded-core-be6d0f398404e4566d4fac145c745899909117f1.zip |
useradd.bbclass: fix traceback when inheriting useradd but not setting USERADD_PARAM or GROUPADD_PARAM
Replaced bb.build.FuncFailed with bb.fatal
[YOCTO #4486]
Signed-off-by: Ionut Radu <ionutx.radu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
-rw-r--r-- | meta/classes/useradd.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass index 9b3ac258ae..21daae8d77 100644 --- a/meta/classes/useradd.bbclass +++ b/meta/classes/useradd.bbclass @@ -133,7 +133,7 @@ def update_useradd_after_parse(d): for pkg in useradd_packages.split(): if not d.getVar('USERADD_PARAM_%s' % pkg, True) and not d.getVar('GROUPADD_PARAM_%s' % pkg, True) and not d.getVar('GROUPMEMS_PARAM_%s' % pkg, True): - raise bb.build.FuncFailed("%s inherits useradd but doesn't set USERADD_PARAM, GROUPADD_PARAM or GROUPMEMS_PARAM for package %s" % (d.getVar('FILE'), pkg)) + bb.fatal("%s inherits useradd but doesn't set USERADD_PARAM, GROUPADD_PARAM or GROUPMEMS_PARAM for package %s" % (d.getVar('FILE'), pkg)) python __anonymous() { update_useradd_after_parse(d) |