b4cd33fac9
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
(cherry picked from commit
|
||
---|---|---|
.. | ||
acp | ||
apicheck | ||
atree | ||
droiddoc | ||
fs_config | ||
fs_get_stats | ||
ijar | ||
makeparallel | ||
releasetools | ||
rgb2565 | ||
signapk | ||
signtos | ||
zipalign | ||
ziptime | ||
adbs | ||
Android.mk | ||
buildinfo.sh | ||
check_builds.sh | ||
check_radio_versions.py | ||
compare_fileslist.py | ||
diff_package_overlays.py | ||
dump-package-stats | ||
event_log_tags.py | ||
fileslist.py | ||
fileslist_util.py | ||
filter-product-graph.py | ||
findleaves.py | ||
fixlinebreaks.sh | ||
generate-notice-files.py | ||
java-event-log-tags.py | ||
java-layers.py | ||
merge-event-log-tags.py | ||
mktarball.sh | ||
normalize_path.py | ||
parsedeps.py | ||
post_process_props.py | ||
print_module_licenses.sh | ||
product_debug.py | ||
warn.py |