From: Alexandre Belloni Date: Tue, 7 Apr 2015 10:21:58 +0000 (+0200) Subject: wic: rawcopy: ensure comparison is done on int X-Git-Tag: 2015-10~2278 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=2ef885329cfd0351f551a33dcf3f42e25f38dea7;p=openembedded-core.git wic: rawcopy: ensure comparison is done on int The size comparison may fail because it is done on strings rather than integers. Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/wic/plugins/source/rawcopy.py b/scripts/lib/wic/plugins/source/rawcopy.py index 6bdd9b21ce..ca6b721b67 100644 --- a/scripts/lib/wic/plugins/source/rawcopy.py +++ b/scripts/lib/wic/plugins/source/rawcopy.py @@ -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