diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-06-29 18:01:42 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-02 23:08:38 +0100 |
commit | 34172ef8056244a89cccbbc76de91eca7bc8b0c0 (patch) | |
tree | 91e551985b03e728e4bd1df6acee44f7dc8c7d22 /scripts/wic | |
parent | 335aa0fee865c23a067562323641bef1dcae687e (diff) | |
download | poky-34172ef8056244a89cccbbc76de91eca7bc8b0c0.tar.gz |
wic: Code cleanup: long lines, identation and whitespaces
Fixed pylint warnings bad-continuation, bad-continuation and
line-too-long.
(From OE-Core rev: db43e59f41b6bc19152cd4743585a3217015e272)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/wic')
-rwxr-xr-x | scripts/wic | 26 |
1 files changed, 17 insertions, 9 deletions
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): | |||
90 | parser = optparse.OptionParser(usage=usage_str) | 90 | parser = optparse.OptionParser(usage=usage_str) |
91 | 91 | ||
92 | parser.add_option("-o", "--outdir", dest="outdir", | 92 | parser.add_option("-o", "--outdir", dest="outdir", |
93 | action="store", help="name of directory to create image in") | 93 | help="name of directory to create image in") |
94 | parser.add_option("-e", "--image-name", dest="image_name", | 94 | parser.add_option("-e", "--image-name", dest="image_name", |
95 | action="store", help="name of the image to use the artifacts from e.g. core-image-sato") | 95 | help="name of the image to use the artifacts from " |
96 | parser.add_option("-r", "--rootfs-dir", dest="rootfs_dir", | 96 | "e.g. core-image-sato") |
97 | action="callback", callback=callback_rootfs_dir, type="string", | 97 | parser.add_option("-r", "--rootfs-dir", dest="rootfs_dir", type="string", |
98 | help="path to the /rootfs dir to use as the .wks rootfs source") | 98 | action="callback", callback=callback_rootfs_dir, |
99 | help="path to the /rootfs dir to use as the " | ||
100 | ".wks rootfs source") | ||
99 | parser.add_option("-b", "--bootimg-dir", dest="bootimg_dir", | 101 | parser.add_option("-b", "--bootimg-dir", dest="bootimg_dir", |
100 | action="store", help="path to the dir containing the boot artifacts (e.g. /EFI or /syslinux dirs) to use as the .wks bootimg source") | 102 | help="path to the dir containing the boot artifacts " |
103 | "(e.g. /EFI or /syslinux dirs) to use as the " | ||
104 | ".wks bootimg source") | ||
101 | parser.add_option("-k", "--kernel-dir", dest="kernel_dir", | 105 | parser.add_option("-k", "--kernel-dir", dest="kernel_dir", |
102 | action="store", help="path to the dir containing the kernel to use in the .wks bootimg") | 106 | help="path to the dir containing the kernel to use " |
107 | "in the .wks bootimg") | ||
103 | parser.add_option("-n", "--native-sysroot", dest="native_sysroot", | 108 | parser.add_option("-n", "--native-sysroot", dest="native_sysroot", |
104 | action="store", help="path to the native sysroot containing the tools to use to build the image") | 109 | help="path to the native sysroot containing the tools " |
110 | "to use to build the image") | ||
105 | parser.add_option("-p", "--skip-build-check", dest="build_check", | 111 | parser.add_option("-p", "--skip-build-check", dest="build_check", |
106 | action="store_false", default=True, help="skip the build check") | 112 | action="store_false", default=True, help="skip the build check") |
107 | parser.add_option("-f", "--build-rootfs", action="store_true", help="build rootfs") | 113 | parser.add_option("-f", "--build-rootfs", action="store_true", help="build rootfs") |
@@ -173,7 +179,9 @@ def wic_create_subcommand(args, usage_str): | |||
173 | if not wks_file.endswith(".wks"): | 179 | if not wks_file.endswith(".wks"): |
174 | wks_file = engine.find_canned_image(scripts_path, wks_file) | 180 | wks_file = engine.find_canned_image(scripts_path, wks_file) |
175 | if not wks_file: | 181 | 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" % args[0] | 182 | print "No image named %s found, exiting. (Use 'wic list images' "\ |
183 | "to list available images, or specify a fully-qualified OE "\ | ||
184 | "kickstart (.wks) filename)\n" % args[0] | ||
177 | sys.exit(1) | 185 | sys.exit(1) |
178 | 186 | ||
179 | image_output_dir = "" | 187 | image_output_dir = "" |