diff options
Diffstat (limited to 'tools/releasetools')
-rwxr-xr-x | tools/releasetools/img_from_target_files.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/releasetools/img_from_target_files.py b/tools/releasetools/img_from_target_files.py index 596a47e..93092b3 100755 --- a/tools/releasetools/img_from_target_files.py +++ b/tools/releasetools/img_from_target_files.py @@ -90,8 +90,7 @@ def BuildSystem(input_dir, info_dict, sparse=True, map_file=None): mapdata = None if sparse: - img.seek(os.SEEK_SET, 0) - data = img.read() + data = open(img.name).read() img.close() else: success, name = build_image.UnsparseImage(img.name, replace=False) |