diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-09-02 13:58:08 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-03 12:43:27 +0100 |
commit | c9876833a473817599656f5ec4cfd48b65e73394 (patch) | |
tree | 8a0730e72a71b384c47b6ed8a9d4f0d6bdbd8ecd | |
parent | 90486ff047336764f1ea4cabcf88d1d38cfb065b (diff) | |
download | poky-c9876833a473817599656f5ec4cfd48b65e73394.tar.gz |
wic: fix errors in partition.py module
Fixed the followring errors found by pylint in partition.py:
E: 42, 0: class already defined line 33 (function-redefined)
E:429,63: Undefined variable 'fs' (undefined-variable)
E:432,37: Undefined variable 'fs' (undefined-variable)
E:481, 0: class already defined line 33 (function-redefined)
E:488,22: Undefined variable 'OptionValueError' (undefined-variable)
(From OE-Core rev: 83b1aa4b6480b625d1accee4c594162df2e84b96)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | scripts/lib/wic/kickstart/custom_commands/partition.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/scripts/lib/wic/kickstart/custom_commands/partition.py index dd6edd2f10..6defc9903f 100644 --- a/scripts/lib/wic/kickstart/custom_commands/partition.py +++ b/scripts/lib/wic/kickstart/custom_commands/partition.py | |||
@@ -27,10 +27,10 @@ | |||
27 | import os | 27 | import os |
28 | import tempfile | 28 | import tempfile |
29 | import uuid | 29 | import uuid |
30 | from optparse import OptionValueError | ||
30 | 31 | ||
31 | from pykickstart.commands.partition import FC4_PartData, FC4_Partition | 32 | from pykickstart.commands.partition import FC4_PartData, FC4_Partition |
32 | from wic.utils.oe.misc import * | 33 | from wic.utils.oe.misc import * |
33 | from wic.kickstart.custom_commands import * | ||
34 | from wic.plugin import pluginmgr | 34 | from wic.plugin import pluginmgr |
35 | 35 | ||
36 | partition_methods = { | 36 | partition_methods = { |
@@ -426,10 +426,10 @@ class Wic_PartData(FC4_PartData): | |||
426 | if self.label: | 426 | if self.label: |
427 | label_str = "-n %s" % self.label | 427 | label_str = "-n %s" % self.label |
428 | 428 | ||
429 | dosfs_cmd = "mkdosfs %s -S 512 -C %s %d" % (label_str, fs, blocks) | 429 | dosfs_cmd = "mkdosfs %s -S 512 -C %s %d" % (label_str, rootfs, blocks) |
430 | exec_native_cmd(dosfs_cmd, native_sysroot) | 430 | exec_native_cmd(dosfs_cmd, native_sysroot) |
431 | 431 | ||
432 | chmod_cmd = "chmod 644 %s" % fs | 432 | chmod_cmd = "chmod 644 %s" % rootfs |
433 | exec_cmd(chmod_cmd) | 433 | exec_cmd(chmod_cmd) |
434 | 434 | ||
435 | def prepare_empty_partition_squashfs(self, cr_workdir, oe_builddir, | 435 | def prepare_empty_partition_squashfs(self, cr_workdir, oe_builddir, |