summaryrefslogtreecommitdiff
path: root/scripts/lib/wic
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2015-04-07 12:21:58 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-08 23:11:07 +0100
commit2ef885329cfd0351f551a33dcf3f42e25f38dea7 (patch)
treea9094edc56504b12aa9093ccad24bf37dbe561ab /scripts/lib/wic
parentdfde8bdae3ae151ffed5777b920d24c774e5da2c (diff)
downloadopenembedded-core-2ef885329cfd0351f551a33dcf3f42e25f38dea7.tar.gz
openembedded-core-2ef885329cfd0351f551a33dcf3f42e25f38dea7.tar.bz2
openembedded-core-2ef885329cfd0351f551a33dcf3f42e25f38dea7.zip
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 <alexandre.belloni@free-electrons.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic')
-rw-r--r--scripts/lib/wic/plugins/source/rawcopy.py2
1 files changed, 1 insertions, 1 deletions
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