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:16 +0100 |
commit | 2fd4a2008870224748b440711951101d08eca1e4 (patch) | |
tree | 8218b2612f834540ace30ad6384d3255f0ce5d9e | |
parent | cc75d77bc93017b2bdaaaf30959a94ef96c9e379 (diff) | |
download | poky-2fd4a2008870224748b440711951101d08eca1e4.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: 772c9f66633e85c5059670d328e1b5fad407457f)
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>
-rwxr-xr-x | scripts/wic | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/wic b/scripts/wic index aee63a45aa..06e0b48db0 100755 --- a/scripts/wic +++ b/scripts/wic | |||
@@ -209,7 +209,7 @@ def wic_create_subcommand(options, usage_str): | |||
209 | logger.info(" (Please check that the build artifacts for the machine") | 209 | logger.info(" (Please check that the build artifacts for the machine") |
210 | logger.info(" selected in local.conf actually exist and that they") | 210 | logger.info(" selected in local.conf actually exist and that they") |
211 | logger.info(" are the correct artifacts for the image (.wks file)).\n") | 211 | logger.info(" are the correct artifacts for the image (.wks file)).\n") |
212 | raise WicError("The artifact that couldn't be found was %s:\n %s", not_found, not_found_dir) | 212 | raise WicError("The artifact that couldn't be found was %s:\n %s" % (not_found, not_found_dir)) |
213 | 213 | ||
214 | krootfs_dir = options.rootfs_dir | 214 | krootfs_dir = options.rootfs_dir |
215 | if krootfs_dir is None: | 215 | if krootfs_dir is None: |