From db43e59f41b6bc19152cd4743585a3217015e272 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Mon, 29 Jun 2015 18:01:42 +0300 Subject: wic: Code cleanup: long lines, identation and whitespaces Fixed pylint warnings bad-continuation, bad-continuation and line-too-long. Signed-off-by: Ed Bartosh --- scripts/wic | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'scripts/wic') diff --git a/scripts/wic b/scripts/wic index ac272c62f7..9435ce085a 100755 --- a/scripts/wic +++ b/scripts/wic @@ -90,18 +90,24 @@ def wic_create_subcommand(args, usage_str): parser = optparse.OptionParser(usage=usage_str) parser.add_option("-o", "--outdir", dest="outdir", - action="store", help="name of directory to create image in") + help="name of directory to create image in") parser.add_option("-e", "--image-name", dest="image_name", - action="store", help="name of the image to use the artifacts from e.g. core-image-sato") - parser.add_option("-r", "--rootfs-dir", dest="rootfs_dir", - action="callback", callback=callback_rootfs_dir, type="string", - help="path to the /rootfs dir to use as the .wks rootfs source") + help="name of the image to use the artifacts from " + "e.g. core-image-sato") + parser.add_option("-r", "--rootfs-dir", dest="rootfs_dir", type="string", + action="callback", callback=callback_rootfs_dir, + help="path to the /rootfs dir to use as the " + ".wks rootfs source") parser.add_option("-b", "--bootimg-dir", dest="bootimg_dir", - action="store", help="path to the dir containing the boot artifacts (e.g. /EFI or /syslinux dirs) to use as the .wks bootimg source") + help="path to the dir containing the boot artifacts " + "(e.g. /EFI or /syslinux dirs) to use as the " + ".wks bootimg source") parser.add_option("-k", "--kernel-dir", dest="kernel_dir", - action="store", help="path to the dir containing the kernel to use in the .wks bootimg") + help="path to the dir containing the kernel to use " + "in the .wks bootimg") parser.add_option("-n", "--native-sysroot", dest="native_sysroot", - action="store", help="path to the native sysroot containing the tools to use to build the image") + help="path to the native sysroot containing the tools " + "to use to build the image") parser.add_option("-p", "--skip-build-check", dest="build_check", action="store_false", default=True, help="skip the build check") parser.add_option("-f", "--build-rootfs", action="store_true", help="build rootfs") @@ -173,7 +179,9 @@ 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" % args[0] + 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 = "" -- cgit v1.2.3