diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-06-26 15:02:06 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-02 23:00:58 +0100 |
commit | 2be905feff3c2166adaa8f50ad09d4b6896461ab (patch) | |
tree | 6946fcf0214740f0a7fbe691d85ed1154a1229aa /scripts/wic | |
parent | 723ed56eda0e64b9678b846ef2001465b15e0c1b (diff) | |
download | openembedded-core-2be905feff3c2166adaa8f50ad09d4b6896461ab.tar.gz openembedded-core-2be905feff3c2166adaa8f50ad09d4b6896461ab.tar.bz2 openembedded-core-2be905feff3c2166adaa8f50ad09d4b6896461ab.zip |
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]
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
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 f9be972bad..a39ec95e0b 100755 --- a/scripts/wic +++ b/scripts/wic @@ -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 = "" |