mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
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:
parent
dd6a1525ec
commit
8bf5afb118
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user