From 3d5cd4d109c0998bdc7523056daac67e77d94e42 Mon Sep 17 00:00:00 2001 From: Spandan Das Date: Mon, 20 Sep 2021 18:24:56 +0000 Subject: [PATCH] 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 . File size is restored to pre-regression value Bug: 199921980 Bug: 200329228 Change-Id: If1e61ac8e2b95455dacc6e7b9431c8f6e1f339b3 --- scripts/manifest_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/manifest_check.py b/scripts/manifest_check.py index 71fe358ff..b4936b865 100755 --- a/scripts/manifest_check.py +++ b/scripts/manifest_check.py @@ -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: