Skip to content

Commit

Permalink
Add support for delta OTA
Browse files Browse the repository at this point in the history
 Put images to "old" dir for apply delta OTA
  • Loading branch information
vm03 committed Nov 8, 2020
1 parent 7784e8c commit 16a6751
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions update_payload/applier.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,9 @@ def _ApplyDiffOperation(self, op, op_name, patch_data, old_part_file,
data_length=op.dst_length if op.dst_length else
self._BytesInExtents(op.dst_extents, "%s.dst_extents"))

new_file_name = '/dev/fd/%d' % new_part_file.fileno()
new_file_name = new_part_file.name
# Diff from source partition.
old_file_name = '/dev/fd/%d' % old_part_file.fileno()
old_file_name = old_part_file.name

# In python3, file descriptors(fd) are not passed to child processes by
# default. To pass the fds to the child processes, we need to set the flag
Expand Down

0 comments on commit 16a6751

Please sign in to comment.