summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2017-12-08 14:55:04 -0800
committerDan Albert <danalbert@google.com>2017-12-08 14:57:47 -0800
commit6867e1b5ac048ad80e1d2c57fac29093b7ae1403 (patch)
tree9ef3e4eb32adfae0d3ed6d51d64d63786bbc9e47
parent5fff6f248ff5d2b1acee01aec1a7f56369854585 (diff)
downloadndk-6867e1b5ac048ad80e1d2c57fac29093b7ae1403.tar.gz
Update update.py for new NDKs.
We don't have any gaps to symlink any more. Test: ./update.py -b ndk-release-r16 --build 4479499 r16 Bug: None Change-Id: If871a20b4fd48b4f2685a28beea75a2357a7b866
-rwxr-xr-xupdate.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/update.py b/update.py
index f13eca1f1..b655ca705 100755
--- a/update.py
+++ b/update.py
@@ -85,17 +85,6 @@ def install_new_release(branch, build, install_dir):
os.unlink(artifact)
-def symlink_gaps(first, last):
- for api in xrange(first, last + 1):
- if os.path.exists(api_str(api)):
- continue
-
- # Not all API levels have a platform directory. Make a symlink to the
- # previous API level. For example, symlink android-10 to android-9.
- assert api != 9
- os.symlink(api_str(api - 1), api_str(api))
-
-
def make_symlinks(install_dir):
old_dir = os.getcwd()
os.chdir(os.path.join(THIS_DIR, install_dir, 'platforms'))
@@ -115,7 +104,6 @@ def make_symlinks(install_dir):
os.unlink(dst)
os.symlink(src, dst)
- symlink_gaps(first_api, latest_api)
os.chdir(old_dir)