wic: plugins: rawcopy: Fixed wrong variable type
Without the int() function this variable will be a string. This will led to a error in Filemap on line 545 due wrong types. > [...] > File > ".../poky/scripts/lib/wic/filemap.py", line 545, in sparse_copy > if start < skip < end: > TypeError: unorderable types: int() < str() (From OE-Core rev: 46b5814bcdc0e7e3cb293e877e2aa949baf5fef8) Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
a097d29fb2
commit
52de84763d
|
@ -73,7 +73,7 @@ class RawCopyPlugin(SourcePlugin):
|
|||
dst = os.path.join(cr_workdir, "%s.%s" % (source_params['file'], part.lineno))
|
||||
|
||||
if 'skip' in source_params:
|
||||
sparse_copy(src, dst, skip=source_params['skip'])
|
||||
sparse_copy(src, dst, skip=int(source_params['skip']))
|
||||
else:
|
||||
sparse_copy(src, dst)
|
||||
|
||||
|
|
Loading…
Reference in New Issue