]> code.ossystems Code Review - openembedded-core.git/commit
wic: plugins: rawcopy: Fixed wrong variable type
authorDaniel Schultz <d.schultz@phytec.de>
Tue, 7 Mar 2017 13:41:55 +0000 (14:41 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 May 2017 12:04:44 +0000 (13:04 +0100)
commit5b9bcfef9086c19a4577d36729b7b339f959d5c4
treeb8d2294a719c7492028797e674b6671b010ac88b
parente29deac69ed29226b68001db2fcfb3ed24c0568a
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()

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 46b5814bcdc0e7e3cb293e877e2aa949baf5fef8)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
scripts/lib/wic/plugins/source/rawcopy.py