summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/plugins
diff options
context:
space:
mode:
authorDaniel Schultz <d.schultz@phytec.de>2017-03-07 14:41:55 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-10 14:50:10 +0000
commit52de84763d4eff2c7336066bcb3fde92cb413a11 (patch)
treed69df3c3efc425caa2070466212bee20baba1e56 /scripts/lib/wic/plugins
parenta097d29fb296b0720c42d4901c49a9a70f2d2e45 (diff)
downloadpoky-52de84763d4eff2c7336066bcb3fde92cb413a11.tar.gz
wic: plugins: rawcopy: Fixed wrong variable type
Without the int() function this variable will be a string. This will led to a error in Filemap on line 545 due wrong types. > [...] > File > ".../poky/scripts/lib/wic/filemap.py", line 545, in sparse_copy > if start < skip < end: > TypeError: unorderable types: int() < str() (From OE-Core rev: 46b5814bcdc0e7e3cb293e877e2aa949baf5fef8) Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/plugins')
-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 12348ae35e..bc71cf6f76 100644
--- a/scripts/lib/wic/plugins/source/rawcopy.py
+++ b/scripts/lib/wic/plugins/source/rawcopy.py
@@ -73,7 +73,7 @@ class RawCopyPlugin(SourcePlugin):
73 dst = os.path.join(cr_workdir, "%s.%s" % (source_params['file'], part.lineno)) 73 dst = os.path.join(cr_workdir, "%s.%s" % (source_params['file'], part.lineno))
74 74
75 if 'skip' in source_params: 75 if 'skip' in source_params:
76 sparse_copy(src, dst, skip=source_params['skip']) 76 sparse_copy(src, dst, skip=int(source_params['skip']))
77 else: 77 else:
78 sparse_copy(src, dst) 78 sparse_copy(src, dst)
79 79