summaryrefslogtreecommitdiff
path: root/tools/makeparallel/makeparallel.cpp
diff options
context:
space:
mode:
author Tao Bao <tbao@google.com> 2016-10-24 16:49:08 -0700
committer Tao Bao <tbao@google.com> 2016-10-26 09:40:50 -0700
commit334822842353669df47cec08500d4497b4b353ea (patch)
treeae82da479a3f9fc73c6e5565aacafe881b9add2d /tools/makeparallel/makeparallel.cpp
parent02d2d68aecba66c285a654bd5b674ba922802421 (diff)
releasetools: Make BBOTA incremental generation repeatable.
set() doesn't keep elements according to the order of insertion. So Transfers managed with set() in intermediate steps may not appear in the same order across runs. This leads to slightly different output packages when generating the same incremental OTA. This CL fixes the issue by replacing set() with OrderedDict() in blockimgdiff.GenerateDigraph() and blockimgdiff.FindVertexSequence(). It also adds a testcase that ensures blockimgdiff.GenerateDigraph() preserves the insertion order for Transfer.goes_after set. Bug: 32220816 Test: ota_from_target_files.py gives identical package when running multiple times. Change-Id: I56d551e5ca926993ab46896e33c80e0ce42e506a
Diffstat (limited to 'tools/makeparallel/makeparallel.cpp')
0 files changed, 0 insertions, 0 deletions