mirror of
https://git.yoctoproject.org/poky
synced 2026-05-04 22:39:49 +02:00
wic: code cleanup: superfluous-parens
Removed unncecessary parents after 'if' 'del' and 'print' keywords. Fixed pyling warning: Unnecessary parens after 'xxx' keyword (From OE-Core rev: a64604d11f75973b4c2347fa2669da9889e44013) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
4862a4c33a
commit
a4da21d92f
@@ -62,7 +62,7 @@ class FSImagePlugin(SourcePlugin):
|
||||
|
||||
msger.debug('Bootimg dir: %s' % bootimg_dir)
|
||||
|
||||
if ('file' not in source_params):
|
||||
if 'file' not in source_params:
|
||||
msger.error("No file specified\n")
|
||||
return
|
||||
|
||||
|
||||
@@ -62,14 +62,14 @@ class RawCopyPlugin(SourcePlugin):
|
||||
|
||||
msger.debug('Bootimg dir: %s' % bootimg_dir)
|
||||
|
||||
if ('file' not in source_params):
|
||||
if 'file' not in source_params:
|
||||
msger.error("No file specified\n")
|
||||
return
|
||||
|
||||
src = os.path.join(bootimg_dir, source_params['file'])
|
||||
dst = src
|
||||
|
||||
if ('skip' in source_params):
|
||||
if 'skip' in source_params:
|
||||
dst = os.path.join(cr_workdir, source_params['file'])
|
||||
dd_cmd = "dd if=%s of=%s ibs=%s skip=1 conv=notrunc" % \
|
||||
(src, dst, source_params['skip'])
|
||||
|
||||
Reference in New Issue
Block a user