mirror of
https://git.yoctoproject.org/poky
synced 2026-07-26 19:17:07 +00:00
wic: Code cleanup: long lines, identation and whitespaces
Fixed pylint warnings bad-continuation, bad-continuation and line-too-long. (From OE-Core rev: db43e59f41b6bc19152cd4743585a3217015e272) 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
335aa0fee8
commit
34172ef805
@@ -27,7 +27,7 @@ class Mic_Bootloader(F8_Bootloader):
|
||||
forceLBA=False, location="", md5pass="", password="",
|
||||
upgrade=False, menus=""):
|
||||
F8_Bootloader.__init__(self, writePriority, appendLine, driveorder,
|
||||
forceLBA, location, md5pass, password, upgrade)
|
||||
forceLBA, location, md5pass, password, upgrade)
|
||||
|
||||
self.menus = ""
|
||||
self.ptable = "msdos"
|
||||
|
||||
@@ -157,7 +157,9 @@ class Wic_PartData(Mic_PartData):
|
||||
|
||||
if not self.source:
|
||||
if not self.size:
|
||||
msger.error("The %s partition has a size of zero. Please specify a non-zero --size for that partition." % self.mountpoint)
|
||||
msger.error("The %s partition has a size of zero. Please "
|
||||
"specify a non-zero --size for that partition." % \
|
||||
self.mountpoint)
|
||||
if self.fstype and self.fstype == "swap":
|
||||
self.prepare_swap_partition(cr_workdir, oe_builddir,
|
||||
native_sysroot)
|
||||
@@ -178,9 +180,14 @@ class Wic_PartData(Mic_PartData):
|
||||
plugins = pluginmgr.get_source_plugins()
|
||||
|
||||
if self.source not in plugins:
|
||||
msger.error("The '%s' --source specified for %s doesn't exist.\n\tSee 'wic list source-plugins' for a list of available --sources.\n\tSee 'wic help source-plugins' for details on adding a new source plugin." % (self.source, self.mountpoint))
|
||||
msger.error("The '%s' --source specified for %s doesn't exist.\n\t"
|
||||
"See 'wic list source-plugins' for a list of available"
|
||||
" --sources.\n\tSee 'wic help source-plugins' for "
|
||||
"details on adding a new source plugin." % \
|
||||
(self.source, self.mountpoint))
|
||||
|
||||
self._source_methods = pluginmgr.get_source_plugin_methods(self.source, partition_methods)
|
||||
self._source_methods = pluginmgr.get_source_plugin_methods(\
|
||||
self.source, partition_methods)
|
||||
self._source_methods["do_configure_partition"](self, self.sourceparams_dict,
|
||||
cr, cr_workdir,
|
||||
oe_builddir,
|
||||
@@ -466,9 +473,10 @@ class Wic_Partition(Mic_Partition):
|
||||
removedAttrs = Mic_Partition.removedAttrs
|
||||
|
||||
def _getParser(self):
|
||||
def overhead_cb (option, opt_str, value, parser):
|
||||
def overhead_cb(option, opt_str, value, parser):
|
||||
if value < 1:
|
||||
raise OptionValueError("Option %s: invalid value: %r" % (option, value))
|
||||
raise OptionValueError("Option %s: invalid value: %r" % \
|
||||
(option, value))
|
||||
setattr(parser.values, option.dest, value)
|
||||
|
||||
op = Mic_Partition._getParser(self)
|
||||
|
||||
Reference in New Issue
Block a user