diff options
author | Alan Viverette <alanv@google.com> | 2017-08-17 14:45:46 -0400 |
---|---|---|
committer | Alan Viverette <alanv@google.com> | 2017-08-30 15:02:49 +0000 |
commit | 7fdd4ef78683da921fda62b9aee46bd03806dd77 (patch) | |
tree | 4dc7ffc6455d74293a8a055dbb154877017434a0 | |
parent | 13401d35fc38521993c85c81621c7dd52d2feff7 (diff) | |
download | sdk-7fdd4ef78683da921fda62b9aee46bd03806dd77.tar.gz |
Fix update_current.py
Correctly blacklist noto JAR, return boolean from update_support.
Does not affect system image.
Fixes: 65198133
Test: ./update_current.py -s 4282687
Change-Id: Iefb2cc0e50adc28e9efa53d4382a0914d0216917
(cherry picked from commit f48d9b434f24b9e06ef22df1c645deda0ece441d)
-rwxr-xr-x | update_current.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/update_current.py b/update_current.py index 249ac963e..ba3e08192 100755 --- a/update_current.py +++ b/update_current.py @@ -65,7 +65,7 @@ blacklist_files = [ 'public.txt', 'R.txt', 'AndroidManifest.xml', - 'noto-emoji-compat-java.jar' + os.path.join('libs','noto-emoji-compat-java.jar') ] artifact_pattern = re.compile(r"^(.+?)-(\d+\.\d+\.\d+(?:-\w+\d+)?(?:-[\d.]+)*)\.(jar|aar)$") @@ -221,10 +221,11 @@ def update_support(target, build_id): repo_dir = fetch_and_extract(target, build_id, repo_file) if not repo_dir: print >> sys.stderr, 'Failed to extract Support Library repository' - return + return False # Transform the repo archive into a Makefile-compatible format. transform_maven_repo(repo_dir, support_dir) + return True def update_constraint(target, build_id): @@ -317,18 +318,21 @@ try: if args.constraint: if update_constraint('studio', args.buildId): components = append(components, 'Constraint Layout') + print >> sys.stderr, 'Failed to update Constraint Layout, aborting...' else: sys.exit(1) if args.support: if update_support('support_library', args.buildId): components = append(components, 'Support Library') else: + print >> sys.stderr, 'Failed to update Support Library, aborting...' sys.exit(1) if args.platform: if update_sdk_repo('sdk_phone_armv7-sdk_mac', args.buildId) \ and update_system('sdk_phone_armv7-sdk_mac', args.buildId): components = append(components, 'platform SDK') else: + print >> sys.stderr, 'Failed to update platform SDK, aborting...' sys.exit(1) # Commit all changes. |