summaryrefslogtreecommitdiffstats
path: root/scripts/wic
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-04-09 14:36:49 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-13 22:28:33 +0100
commite07dd9b9c71960fbeded162ed52fbce06de620e9 (patch)
treeaa1d921dda0ef092a655bf44d54f69d514ec6826 /scripts/wic
parent9946909dc95c3274a98112cf786d171547b3ed75 (diff)
downloadopenembedded-core-contrib-e07dd9b9c71960fbeded162ed52fbce06de620e9.tar.gz
wic:code cleanup: No space allowed
Fixed pylint warning 'No space allowed around keyword argument assignment' 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-xscripts/wic58
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()