diff options
Diffstat (limited to 'meta/classes/useradd.bbclass')
-rw-r--r-- | meta/classes/useradd.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass index 0a4febadc8..52c0ba4ec1 100644 --- a/meta/classes/useradd.bbclass +++ b/meta/classes/useradd.bbclass | |||
@@ -157,11 +157,11 @@ def update_useradd_after_parse(d): | |||
157 | useradd_packages = d.getVar('USERADD_PACKAGES', True) | 157 | useradd_packages = d.getVar('USERADD_PACKAGES', True) |
158 | 158 | ||
159 | if not useradd_packages: | 159 | if not useradd_packages: |
160 | raise bb.build.FuncFailed, "%s inherits useradd but doesn't set USERADD_PACKAGES" % d.getVar('FILE') | 160 | raise bb.build.FuncFailed("%s inherits useradd but doesn't set USERADD_PACKAGES" % d.getVar('FILE')) |
161 | 161 | ||
162 | for pkg in useradd_packages.split(): | 162 | for pkg in useradd_packages.split(): |
163 | if not d.getVar('USERADD_PARAM_%s' % pkg, True) and not d.getVar('GROUPADD_PARAM_%s' % pkg, True): | 163 | if not d.getVar('USERADD_PARAM_%s' % pkg, True) and not d.getVar('GROUPADD_PARAM_%s' % pkg, True): |
164 | raise bb.build.FuncFailed, "%s inherits useradd but doesn't set USERADD_PARAM or GROUPADD_PARAM for package %s" % (d.getVar('FILE'), pkg) | 164 | raise bb.build.FuncFailed("%s inherits useradd but doesn't set USERADD_PARAM or GROUPADD_PARAM for package %s" % (d.getVar('FILE'), pkg)) |
165 | 165 | ||
166 | python __anonymous() { | 166 | python __anonymous() { |
167 | update_useradd_after_parse(d) | 167 | update_useradd_after_parse(d) |