diff options
Diffstat (limited to 'scripts/lib/wic/filemap.py')
| -rw-r--r-- | scripts/lib/wic/filemap.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/wic/filemap.py b/scripts/lib/wic/filemap.py index f3240ba8d8..162603ed0a 100644 --- a/scripts/lib/wic/filemap.py +++ b/scripts/lib/wic/filemap.py | |||
| @@ -543,9 +543,9 @@ def sparse_copy(src_fname, dst_fname, offset=0, skip=0): | |||
| 543 | end = (last + 1) * fmap.block_size | 543 | end = (last + 1) * fmap.block_size |
| 544 | 544 | ||
| 545 | if start < skip < end: | 545 | if start < skip < end: |
| 546 | start = skip | 546 | fmap._f_image.seek(skip, os.SEEK_SET) |
| 547 | 547 | else: | |
| 548 | fmap._f_image.seek(start, os.SEEK_SET) | 548 | fmap._f_image.seek(start, os.SEEK_SET) |
| 549 | dst_file.seek(offset + start, os.SEEK_SET) | 549 | dst_file.seek(offset + start, os.SEEK_SET) |
| 550 | 550 | ||
| 551 | chunk_size = 1024 * 1024 | 551 | chunk_size = 1024 * 1024 |
