diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-04-09 14:36:49 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-13 22:33:20 +0100 |
commit | d0d0ab85c49d7a874bef8b8d8844bbe9b1dc0c49 (patch) | |
tree | 7907a4a29e7d02b43af97f6f12c156519517438f /scripts/wic | |
parent | 1521a3dda0a6ebcedb52f4a410f705c8d68d0a11 (diff) | |
download | openembedded-core-contrib-d0d0ab85c49d7a874bef8b8d8844bbe9b1dc0c49.tar.gz |
wic:code cleanup: No space allowed
Fixed pylint warning
'No space allowed around keyword argument assignment'
(From OE-Core rev: e07dd9b9c71960fbeded162ed52fbce06de620e9)
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 | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/scripts/wic b/scripts/wic index 524156ddc5..dcf1a5520e 100755 --- a/scripts/wic +++ b/scripts/wic @@ -79,28 +79,28 @@ def wic_create_subcommand(args, usage_str): Command-line handling for image creation. The real work is done by image.engine.wic_create() """ - parser = optparse.OptionParser(usage = usage_str) - - parser.add_option("-o", "--outdir", dest = "outdir", - action = "store", help = "name of directory to create image in") - parser.add_option("-i", "--infile", dest = "properties_file", - action = "store", help = "name of file containing the values for image properties as a JSON file") - 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") - 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") - 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") - 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") - 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") - parser.add_option("-D", "--debug", dest = "debug", action = "store_true", - default = False, help = "output debug information") + parser = optparse.OptionParser(usage=usage_str) + + parser.add_option("-o", "--outdir", dest="outdir", + action="store", help="name of directory to create image in") + parser.add_option("-i", "--infile", dest="properties_file", + action="store", help="name of file containing the values for image properties as a JSON file") + 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") + 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") + 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") + 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") + 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") + parser.add_option("-D", "--debug", dest="debug", action="store_true", + default=False, help="output debug information") (options, args) = parser.parse_args(args) @@ -223,11 +223,11 @@ def wic_list_subcommand(args, usage_str): Command-line handling for listing available image properties and values. The real work is done by image.engine.wic_list() """ - parser = optparse.OptionParser(usage = usage_str) + parser = optparse.OptionParser(usage=usage_str) - parser.add_option("-o", "--outfile", action = "store", - dest = "properties_file", - help = "dump the possible values for image properties to a JSON file") + parser.add_option("-o", "--outfile", action="store", + dest="properties_file", + help="dump the possible values for image properties to a JSON file") (options, args) = parser.parse_args(args) @@ -276,12 +276,12 @@ subcommands = { def start_logging(loglevel): - logging.basicConfig(filname = 'wic.log', filemode = 'w', level=loglevel) + logging.basicConfig(filname='wic.log', filemode='w', level=loglevel) def main(): - parser = optparse.OptionParser(version = "wic version %s" % __version__, - usage = wic_usage) + parser = optparse.OptionParser(version="wic version %s" % __version__, + usage=wic_usage) parser.disable_interspersed_args() |