mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-11 15:13:27 +02:00
makebuildserver: do not provision excessive NDKs
When a new minor version of an NDK is released, it replaces an older one,
e.g. r16 with r16b (see commit 6f295cb
). But old NDK package remains in
the cache and provisioning script unpacks it too as it matches the mask.
Fix NDK provisioning to unzip only while-listed versions.
This commit is contained in:
parent
bffa6a73be
commit
2c0e430a2d
@ -14,8 +14,7 @@ if [ ! -e $NDK_BASE/r10e ]; then
|
|||||||
mv android-ndk-r10e r10e
|
mv android-ndk-r10e r10e
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for f in /vagrant/cache/android-ndk-r[1-9][0-9]*-linux-x86_64.zip; do
|
for version in r11c r12b r13b r14b r15c r16b; do
|
||||||
version=`echo $f |sed 's,.*\(r[1-9][0-9][a-z]\?\).*,\1,'`
|
|
||||||
if [ ! -e ${NDK_BASE}/${version} ]; then
|
if [ ! -e ${NDK_BASE}/${version} ]; then
|
||||||
unzip /vagrant/cache/android-ndk-${version}-linux-x86_64.zip > /dev/null
|
unzip /vagrant/cache/android-ndk-${version}-linux-x86_64.zip > /dev/null
|
||||||
mv android-ndk-${version} ${version}
|
mv android-ndk-${version} ${version}
|
||||||
|
Loading…
Reference in New Issue
Block a user