summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-06-26 15:02:06 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-02 23:08:36 +0100
commitba2396831d1ce3a0a7363098ef589408e6beb02e (patch)
tree50dcb1b9fb8befb804ef8f5e9d24a532f577d86f /scripts
parentb42d7d26e11164c4811d0b0923982c0e387ed7bb (diff)
downloadpoky-ba2396831d1ce3a0a7363098ef589408e6beb02e.tar.gz
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/wic2
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):
173 if not wks_file.endswith(".wks"): 173 if not wks_file.endswith(".wks"):
174 wks_file = engine.find_canned_image(scripts_path, wks_file) 174 wks_file = engine.find_canned_image(scripts_path, wks_file)
175 if not wks_file: 175 if not wks_file:
176 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 176 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]
177 sys.exit(1) 177 sys.exit(1)
178 178
179 image_output_dir = "" 179 image_output_dir = ""