[OE-core] [PATCH 07/18] wic: pylinted direct_plugin
Ed Bartosh
ed.bartosh at linux.intel.com
Wed Feb 1 13:48:14 UTC 2017
Fixed wrong continued indentation, unused import and
trailing new line pyling warnings.
[YOCTO #10619]
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
---
scripts/lib/wic/plugins/imager/direct_plugin.py | 22 +++++++---------------
1 file 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 48588db..1d0d3ff 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
import shutil
import uuid
import tempfile
-import time
from time import strftime
from os.path import basename, splitext
@@ -307,19 +306,13 @@ class DirectImageCreator:
self.bootimg_dir, self.kernel_dir, self.native_sysroot)
- self._image.add_partition(part.disk_size,
- part.disk,
- part.mountpoint,
- part.source_file,
- part.fstype,
- part.label,
- fsopts=part.fsopts,
- boot=part.active,
- align=part.align,
- no_table=part.no_table,
- part_type=part.part_type,
- uuid=part.uuid,
- system_id=part.system_id)
+ self._image.add_partition(part.disk_size, part.disk,
+ part.mountpoint, part.source_file,
+ part.fstype, part.label,
+ fsopts=part.fsopts, boot=part.active,
+ align=part.align, no_table=part.no_table,
+ part_type=part.part_type, uuid=part.uuid,
+ system_id=part.system_id)
if fstab_path:
shutil.move(fstab_path + ".orig", fstab_path)
@@ -443,4 +436,3 @@ class DirectImageCreator:
# remove work directory
shutil.rmtree(self.workdir, ignore_errors=True)
-
--
2.1.4
More information about the Openembedded-core
mailing list