summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-01-31 03:54:41 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-02-02 17:37:44 +0000
commit59496d9cdc3866e993e3ca3415036a8b2087260a (patch)
tree990966590da07dfc98d45362cb9c8734a56685b6 /scripts
parentf36c70b0679251cfd5706f163eb6bf2f1e9ac335 (diff)
downloadpoky-59496d9cdc3866e993e3ca3415036a8b2087260a.tar.gz
wic: pylinted direct_plugin
Fixed wrong continued indentation, unused import and trailing new line pyling warnings. [YOCTO #10619] (From OE-Core rev: e78762a4b52c31357ef29a5b93c53db7190fa4f2) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/plugins/imager/direct_plugin.py22
1 files changed, 7 insertions, 15 deletions
diff --git a/scripts/lib/wic/plugins/imager/direct_plugin.py b/scripts/lib/wic/plugins/imager/direct_plugin.py
index 48588dbc55..1d0d3ff546 100644
--- a/scripts/lib/wic/plugins/imager/direct_plugin.py
+++ b/scripts/lib/wic/plugins/imager/direct_plugin.py
@@ -27,7 +27,6 @@ import os
27import shutil 27import shutil
28import uuid 28import uuid
29import tempfile 29import tempfile
30import time
31 30
32from time import strftime 31from time import strftime
33from os.path import basename, splitext 32from os.path import basename, splitext
@@ -307,19 +306,13 @@ class DirectImageCreator:
307 self.bootimg_dir, self.kernel_dir, self.native_sysroot) 306 self.bootimg_dir, self.kernel_dir, self.native_sysroot)
308 307
309 308
310 self._image.add_partition(part.disk_size, 309 self._image.add_partition(part.disk_size, part.disk,
311 part.disk, 310 part.mountpoint, part.source_file,
312 part.mountpoint, 311 part.fstype, part.label,
313 part.source_file, 312 fsopts=part.fsopts, boot=part.active,
314 part.fstype, 313 align=part.align, no_table=part.no_table,
315 part.label, 314 part_type=part.part_type, uuid=part.uuid,
316 fsopts=part.fsopts, 315 system_id=part.system_id)
317 boot=part.active,
318 align=part.align,
319 no_table=part.no_table,
320 part_type=part.part_type,
321 uuid=part.uuid,
322 system_id=part.system_id)
323 316
324 if fstab_path: 317 if fstab_path:
325 shutil.move(fstab_path + ".orig", fstab_path) 318 shutil.move(fstab_path + ".orig", fstab_path)
@@ -443,4 +436,3 @@ class DirectImageCreator:
443 436
444 # remove work directory 437 # remove work directory
445 shutil.rmtree(self.workdir, ignore_errors=True) 438 shutil.rmtree(self.workdir, ignore_errors=True)
446