]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: Fix misleading message
authorEd Bartosh <ed.bartosh@linux.intel.com>
Fri, 26 Jun 2015 12:02:06 +0000 (15:02 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 Jul 2015 22:00:58 +0000 (23:00 +0100)
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>
scripts/wic

index f9be972bad7a3240388eca1ecb777509b5b55415..a39ec95e0bbf855621f6cac1e5695f815bb847d7 100755 (executable)
@@ -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 = ""