platform_build/tools/releasetools
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
..
add_img_to_target_files store images in target-files 2014-07-31 11:06:30 -07:00
add_img_to_target_files.py releasetools: Support verity signer args. 2016-10-17 16:25:22 -07:00
blockimgdiff.py releasetools: Make BBOTA incremental generation repeatable. 2016-10-26 09:40:50 -07:00
build_image.py releasetools: Support verity signer args. 2016-10-17 16:25:22 -07:00
check_ota_package_signature.py Add a script that verifies OTA package signature. 2016-09-16 15:08:40 -07:00
check_target_files_signatures Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
check_target_files_signatures.py Handle multiple APKs from the same package in check_target_files_signatures.py. 2016-07-27 19:52:28 -07:00
common.py releasetools: Fix the reference to OPTIONS.info_dict. 2016-09-29 22:04:50 -07:00
edify_generator.py Merge \"Remove obsolete MTD support from the releasetools scripts.\" 2016-06-17 04:59:26 +00:00
img_from_target_files Allow to build the update.zip for emulator build. 2014-06-04 17:04:14 +00:00
img_from_target_files.py Honor TARGET_NO_RECOVERY flag. 2015-10-27 20:00:10 -07:00
make_recovery_patch Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
make_recovery_patch.py Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
ota_from_target_files Fix build. 2015-09-15 07:50:10 +00:00
ota_from_target_files.py resolve merge conflicts of 4058a71 to stage-aosp-master 2016-07-11 09:08:24 -07:00
pylintrc Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
rangelib.py Analyze unchanged blocks in odex files. 2016-09-23 12:15:23 -07:00
sign_target_files_apks Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
sign_target_files_apks.py releasetools: Clean up sign_target_files_apks.py. 2016-09-30 15:29:09 -07:00
sparse_img.py Fix metadata location when file system doesn't span the partition 2016-02-10 10:53:47 -08:00
target_files_diff.py target_files_diff: Fix the issue with file type change. 2016-04-25 18:35:20 +00:00
test_blockimgdiff.py releasetools: Make BBOTA incremental generation repeatable. 2016-10-26 09:40:50 -07:00
test_common.py Fix the permission setting in common.ZipWriteStr() 2015-05-20 13:29:03 -07:00
test_rangelib.py Analyze unchanged blocks in odex files. 2016-09-23 12:15:23 -07:00