Fix statusfile used in dexpreopt
https://android-review.googlesource.com/c/platform/build/soong/+/1820496/1/scripts/manifest_check.py#361 caused a regression wrt to statusfile creation. Specifically it inverted the logic used to create the status file. This file is used in dexpreopt, thereby affecting all odex files Test: In internal git, m <an_odex_file>. File size is restored to pre-regression value Bug: 199921980 Bug: 200329228 Change-Id: If1e61ac8e2b95455dacc6e7b9431c8f6e1f339b3
This commit is contained in:
@@ -358,7 +358,7 @@ def main():
|
||||
# the check has failed.
|
||||
if args.enforce_uses_libraries_status:
|
||||
with open(args.enforce_uses_libraries_status, 'w') as f:
|
||||
if not errmsg is not None:
|
||||
if errmsg is not None:
|
||||
f.write('%s\n' % errmsg)
|
||||
|
||||
if args.extract_target_sdk_version:
|
||||
|
Reference in New Issue
Block a user