Files
build/tools
Tao Bao 3348228423 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
2016-10-26 09:40:50 -07:00
..
2016-06-06 14:51:52 -07:00
2016-06-14 13:50:38 -07:00
2016-06-16 14:52:47 -07:00
2016-09-07 13:21:00 -07:00
2014-08-08 13:18:53 -07:00
2016-10-17 12:22:44 -07:00
2016-06-06 14:51:52 -07:00
2015-11-19 18:42:52 +00:00
2012-08-16 22:45:55 -07:00
2016-09-15 14:40:39 -07:00