diff options
author | Edward Hervey <edward@collabora.com> | 2013-11-27 11:53:28 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-04-18 09:56:18 +0200 |
commit | 6acd53ff97314152e90be64ef26cb2812832d9da (patch) | |
tree | 61a0a5dc5a4fa950f9e44e0ee96df34e115dbb6c | |
parent | 1a873639c91ca334a9097bdab2e92d7c46ad9a04 (diff) |
boostrap: Don't untar the android NDK if it's already installed
-rw-r--r-- | cerbero/bootstrap/android.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cerbero/bootstrap/android.py b/cerbero/bootstrap/android.py index 5823be84..c355a17a 100644 --- a/cerbero/bootstrap/android.py +++ b/cerbero/bootstrap/android.py @@ -38,11 +38,12 @@ class AndroidBootstraper (BootstraperBase): except: pass shell.download("%s/%s" % (self.NDK_BASE_URL, ndk_tar), tar) - try: - shell.call('tar -xvjf %s' % ndk_tar, dest) - shell.call('mv android-ndk-r9c/* .', dest) - except Exception: - pass + if not os.path.exists(os.path.join(dest, "README.TXT")): + try: + shell.call('tar -xvjf %s' % ndk_tar, dest) + shell.call('mv android-ndk-r9c/* .', dest) + except Exception: + pass def register_all(): |