diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2022-06-21 16:10:10 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-07-08 08:27:20 +0100 |
commit | 684c5d4c1281fe564007e29eb189fadd3b664a0b (patch) | |
tree | 82dd5c4cca03fff78baa283ef3771318bd8c2c1f /scripts/wic | |
parent | 8dfc7162e31748b4da99e9ee33d45b6b551e384a (diff) | |
download | poky-684c5d4c1281fe564007e29eb189fadd3b664a0b.tar.gz |
wic: fix WicError message
* add missing % to print the values instead of:
| INFO: Build artifacts not found, exiting.
| INFO: (Please check that the build artifacts for the machine
| INFO: selected in local.conf actually exist and that they
| INFO: are the correct artifacts for the image (.wks file)).
|
| ERROR: ("The artifact that couldn't be found was %s:\n %s", 'kernel-dir', '/OE/build/deploy/images/qemux86-64')
(From OE-Core rev: c83cabad78dbc98bb72be7fd7dd51023853a3ff9)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e104c2b1273d8c5bd97893f318bf2a2699ef7f2d)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/wic')
-rwxr-xr-x | scripts/wic | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/wic b/scripts/wic index 6547abe0e9..99a8a97ccb 100755 --- a/scripts/wic +++ b/scripts/wic | |||
@@ -206,7 +206,7 @@ def wic_create_subcommand(options, usage_str): | |||
206 | logger.info(" (Please check that the build artifacts for the machine") | 206 | logger.info(" (Please check that the build artifacts for the machine") |
207 | logger.info(" selected in local.conf actually exist and that they") | 207 | logger.info(" selected in local.conf actually exist and that they") |
208 | logger.info(" are the correct artifacts for the image (.wks file)).\n") | 208 | logger.info(" are the correct artifacts for the image (.wks file)).\n") |
209 | raise WicError("The artifact that couldn't be found was %s:\n %s", not_found, not_found_dir) | 209 | raise WicError("The artifact that couldn't be found was %s:\n %s" % (not_found, not_found_dir)) |
210 | 210 | ||
211 | krootfs_dir = options.rootfs_dir | 211 | krootfs_dir = options.rootfs_dir |
212 | if krootfs_dir is None: | 212 | if krootfs_dir is None: |