wic: rawcopy: ensure comparison is done on int

The size comparison may fail because it is done on strings rather than
integers.

(From OE-Core rev: 2ef885329cfd0351f551a33dcf3f42e25f38dea7)

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexandre Belloni 2015-04-07 12:21:58 +02:00 committed by Richard Purdie
parent dd6a1525ec
commit 8bf5afb118

View File

@ -76,7 +76,7 @@ class RawCopyPlugin(SourcePlugin):
out = exec_cmd(du_cmd)
filesize = out.split()[0]
if filesize > part.size:
if int(filesize) > int(part.size):
part.size = filesize
part.source_file = dst