Iterate through the sorted file map when finding transfers
This helps to generate a deterministic package. Bug: 71770360 Test: Generate a incremental package and transfers are added by file name. Change-Id: I7562a200b97a1babbb09a77801324cc9408cc01f
This commit is contained in:
@@ -1467,7 +1467,7 @@ class BlockImageDiff(object):
|
|||||||
max_blocks_per_transfer = int(cache_size * split_threshold /
|
max_blocks_per_transfer = int(cache_size * split_threshold /
|
||||||
self.tgt.blocksize)
|
self.tgt.blocksize)
|
||||||
empty = RangeSet()
|
empty = RangeSet()
|
||||||
for tgt_fn, tgt_ranges in self.tgt.file_map.items():
|
for tgt_fn, tgt_ranges in sorted(self.tgt.file_map.items()):
|
||||||
if tgt_fn == "__ZERO":
|
if tgt_fn == "__ZERO":
|
||||||
# the special "__ZERO" domain is all the blocks not contained
|
# the special "__ZERO" domain is all the blocks not contained
|
||||||
# in any file and that are filled with zeros. We have a
|
# in any file and that are filled with zeros. We have a
|
||||||
|
Reference in New Issue
Block a user