mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
wic: Fix misleading message
Due to usage of incorrect variable wic produces strange message "No image named None found, exiting." when specified canned .wks doesn't exist. Fixed by replacing wks_file -> argv[0] (From OE-Core rev: 2be905feff3c2166adaa8f50ad09d4b6896461ab) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b42d7d26e1
commit
ba2396831d
@@ -173,7 +173,7 @@ def wic_create_subcommand(args, usage_str):
|
||||
if not wks_file.endswith(".wks"):
|
||||
wks_file = engine.find_canned_image(scripts_path, wks_file)
|
||||
if not wks_file:
|
||||
print "No image named %s found, exiting. (Use 'wic list images' to list available images, or specify a fully-qualified OE kickstart (.wks) filename)\n" % wks_file
|
||||
print "No image named %s found, exiting. (Use 'wic list images' to list available images, or specify a fully-qualified OE kickstart (.wks) filename)\n" % args[0]
|
||||
sys.exit(1)
|
||||
|
||||
image_output_dir = ""
|
||||
|
||||
Reference in New Issue
Block a user