summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/plugins/source/rawcopy.py
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-09 07:43:52 +0100
commit8bf5afb118e837aa7f7b2108e52a6b98a8c349b5 (patch)
tree912a488105ce6a750a8a1be32536e9fe090ebb10 /scripts/lib/wic/plugins/source/rawcopy.py
parentdd6a1525ec378d29ddfbcba05267aa6f2da0ddad (diff)
downloadpoky-8bf5afb118e837aa7f7b2108e52a6b98a8c349b5.tar.gz
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>
Diffstat (limited to 'scripts/lib/wic/plugins/source/rawcopy.py')
-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):
76 out = exec_cmd(du_cmd) 76 out = exec_cmd(du_cmd)
77 filesize = out.split()[0] 77 filesize = out.split()[0]
78 78
79 if filesize > part.size: 79 if int(filesize) > int(part.size):
80 part.size = filesize 80 part.size = filesize
81 81
82 part.source_file = dst 82 part.source_file = dst