[OE-core] [PATCH 1/4] classes/useradd: don't read bbnote/bbwarn/bbfatal values
Paul Eggleton
paul.eggleton at linux.intel.com
Tue Jul 14 14:56:53 UTC 2015
Since these functions now log through BitBake's message logging system
we must have standalone implementations here.
Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
---
meta/classes/useradd.bbclass | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
index aae038f..4577e56 100644
--- a/meta/classes/useradd.bbclass
+++ b/meta/classes/useradd.bbclass
@@ -191,9 +191,9 @@ fakeroot python populate_packages_prepend () {
preinst = d.getVar('pkg_preinst_%s' % pkg, True) or d.getVar('pkg_preinst', True)
if not preinst:
preinst = '#!/bin/sh\n'
- preinst += 'bbnote () {\n%s}\n' % d.getVar('bbnote', True)
- preinst += 'bbwarn () {\n%s}\n' % d.getVar('bbwarn', True)
- preinst += 'bbfatal () {\n%s}\n' % d.getVar('bbfatal', True)
+ preinst += 'bbnote () {\n\techo "NOTE: $*"\n}\n'
+ preinst += 'bbwarn () {\n\techo "WARNING: $*"\n}\n'
+ preinst += 'bbfatal () {\n\techo "ERROR: $*"\n\texit 1\n}\n'
preinst += 'perform_groupadd () {\n%s}\n' % d.getVar('perform_groupadd', True)
preinst += 'perform_useradd () {\n%s}\n' % d.getVar('perform_useradd', True)
preinst += 'perform_groupmems () {\n%s}\n' % d.getVar('perform_groupmems', True)
--
2.1.0
More information about the Openembedded-core
mailing list