summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorMikko Rapeli <mikko.rapeli@linaro.org>2023-06-13 11:02:16 +0300
committerSteve Sakoman <steve@sakoman.com>2023-07-04 05:32:29 -1000
commitbeb7517072678dfc30e2255c41f7dc4b66aae203 (patch)
treee37f9f3a1e1e7058fa645bd59690382c78b34c67 /meta/classes
parent583dba175cf917de745397ed9374b1635e761812 (diff)
downloadpoky-beb7517072678dfc30e2255c41f7dc4b66aae203.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: 3285f6080161ccc808efb7fce7db9dc0dd236ffa) Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> (cherry picked from commit 07898218f3908a83e07178b6530dfa48d55d4ec2) Signed-off-by: Steve Sakoman <steve@sakoman.com>
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: