platform_build/tools/releasetools
Tao Bao 86b529a23e releasetools: Make apex_utils Python 3 compatible.
In order to get a Python 2 and 3 compatible re-raise behavior, this CL
removes the stack traceback for the lines within apex_util module (i.e.
sys.exc_info()[2]). It's not a big loss in practice, since we only have
one line within the try-except block (`common.RunAndCheckOutput()`)
that's no longer reported in the traceback.

Using `six` module could better solve this, but only after building
releasetools as python_binary_host modules where we can properly handle
the module dependency.

Bug: 131631303
Test: TreeHugger
Test: `python -m unittest test_apex_utils`
Test: `python3 -m unittest test_apex_utils`
Change-Id: I0c5a72ec9fad5ff9d8c9c94d29e813e433ec2921
2019-06-25 11:10:55 -07:00
..
testdata Renames system to framework and other to vendor. 2019-06-05 16:47:15 -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: No-op change to use common.AVB_VBMETA_PARTITIONS. 2019-06-10 15:29:19 -07:00
Android.bp relesetools: Support running all the unittests with atest. 2019-04-12 15:26:32 -07:00
apex_utils.py releasetools: Make apex_utils Python 3 compatible. 2019-06-25 11:10:55 -07:00
blockimgdiff.py releasetools: Make blockimgdiff Python 3 compatible. 2019-06-20 14:30:30 -07:00
build_image.py Adds image-specific selinux_fc props to allow different file_contexts. 2019-05-23 11:21:02 -07:00
build_super_image.py Merge changes from topic "dap_size_check" 2019-04-09 02:17:36 +00:00
check_ota_package_signature.py releasetools: Switch to Python logging. 2018-10-17 07:51:04 -07:00
check_target_files_signatures Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
check_target_files_signatures.py Revert^2 "releasetools: check_target_files_signatures.py checks APEXes." 2019-03-20 12:40:34 -07:00
common.py releasetools: Make common Python 3 compatible. 2019-06-24 21:02:12 -07:00
edify_generator.py releasetools: Track edify function API changes. 2018-08-29 11:53:19 -07: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 releasetools: Unzip all files when generating image archive. 2019-05-10 15:57:20 -07:00
make_recovery_patch Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
make_recovery_patch.py releasetools: Switch to Python logging. 2018-10-17 07:51:04 -07:00
merge_target_files.py Allows skipping building the super images for partial builds. 2019-06-14 11:42:45 -07:00
ota_from_target_files Fix build. 2015-09-15 07:50:10 +00:00
ota_from_target_files.py ota_from_target_files: include metadata when odm / product is changed. 2019-04-25 10:22:39 -07:00
ota_package_parser.py Add a script to parse an block-based ota package 2017-05-09 21:01:19 +00:00
OWNERS releasetools: Update OWNERS. 2019-01-11 12:28:09 -08:00
pylintrc releasetools: Make scripts pylint clean. 2018-07-19 10:39:05 -07:00
rangelib.py releasetools: Make rangelib Python 3 compatibile. 2019-06-19 10:30:34 -07:00
sign_apex.py Add sign_apex.py that signs a given APEX file. 2019-05-13 12:41:26 -07:00
sign_target_files_apks Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
sign_target_files_apks.py releasetools: Remove some legacy paths for prop rewrites. 2019-06-21 10:26:15 -07:00
sparse_img.py sparse_img.py --get_partition_size return size of partition 2019-04-04 12:59:00 -07:00
target_files_diff.py Remove ro.expect.recovery_id 2019-01-28 10:56:37 -08:00
test_add_img_to_target_files.py releasetools: Skip on empty care_map. 2019-05-01 22:21:25 -07:00
test_apex_utils.py relesetools: Enable releasetools_test in presubmit. 2019-04-12 15:26:35 -07:00
test_blockimgdiff.py releasetools: Make blockimgdiff Python 3 compatible. 2019-06-20 14:30:30 -07:00
test_build_image.py relesetools: Enable releasetools_test in presubmit. 2019-04-12 15:26:35 -07:00
test_common.py releasetools: Make common Python 3 compatible. 2019-06-24 21:02:12 -07:00
TEST_MAPPING relesetools: Enable releasetools_test in presubmit. 2019-04-12 15:26:35 -07:00
test_merge_target_files.py Renames system to framework and other to vendor. 2019-06-05 16:47:15 -07:00
test_ota_from_target_files.py releasetools: Enable a few tests in OtaFromTargetFilesTest. 2019-04-15 07:33:32 -07:00
test_rangelib.py releasetools: Add a common base class for unittests. 2018-10-11 23:01:09 -07:00
test_sign_target_files_apks.py Ensure that 'release-keys' are set on properties 2019-05-03 10:42:35 -07:00
test_utils.py relesetools: Enable releasetools_test in presubmit. 2019-04-12 15:26:35 -07:00
test_validate_target_files.py relesetools: Enable releasetools_test in presubmit. 2019-04-12 15:26:35 -07:00
test_verity_utils.py releasetools: Make verity_utils Python 3 compatible. 2019-06-24 21:07:19 -07:00
validate_target_files.py releasetools: Make common Python 3 compatible. 2019-06-24 21:02:12 -07:00
verity_utils.py releasetools: Make verity_utils Python 3 compatible. 2019-06-24 21:07:19 -07:00