summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorMikko Rapeli <mikko.rapeli@linaro.org>2023-06-13 11:02:16 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-15 09:53:38 +0100
commita409dfdffcab0acf8555315dc7bff923edd6d3e2 (patch)
tree67b261074e0398b3debb4676903fcc93f85722d7 /meta/classes
parent6523b6d1cb7aa2657646a73192919b68847f96b4 (diff)
downloadpoky-a409dfdffcab0acf8555315dc7bff923edd6d3e2.tar.gz
useradd-staticids.bbclass: improve error message
Current error message is difficult to read: ERROR: Nothing PROVIDES 'image' trs-image was skipped: image - image: normal username test does not have a static ID defined. Add test to one of these files It's not clear that first "image" is recipe name, second "image" is binary package name and that "test" is the user account which does not have a static ID defined. Improve the error message so that these are more explicit. Now the error message looks like: image was skipped: Recipe image, package image: normal username "test" does not have a static ID defined. (From OE-Core rev: 07898218f3908a83e07178b6530dfa48d55d4ec2) Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/useradd-staticids.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/useradd-staticids.bbclass b/meta/classes/useradd-staticids.bbclass
index abe484eb46..1dbcba2bf1 100644
--- a/meta/classes/useradd-staticids.bbclass
+++ b/meta/classes/useradd-staticids.bbclass
@@ -47,7 +47,7 @@ def update_useradd_static_config(d):
47 def handle_missing_id(id, type, pkg, files, var, value): 47 def handle_missing_id(id, type, pkg, files, var, value):
48 # For backwards compatibility we accept "1" in addition to "error" 48 # For backwards compatibility we accept "1" in addition to "error"
49 error_dynamic = d.getVar('USERADD_ERROR_DYNAMIC') 49 error_dynamic = d.getVar('USERADD_ERROR_DYNAMIC')
50 msg = "%s - %s: %sname %s does not have a static ID defined." % (d.getVar('PN'), pkg, type, id) 50 msg = 'Recipe %s, package %s: %sname "%s" does not have a static ID defined.' % (d.getVar('PN'), pkg, type, id)
51 if files: 51 if files:
52 msg += " Add %s to one of these files: %s" % (id, files) 52 msg += " Add %s to one of these files: %s" % (id, files)
53 else: 53 else: