switch to allow/block list terminology throughout code base

allowlist and blocklist are much clearer terms with no cultural baggage.
This changes all "whitelist" references to "allowlist", and all "blacklist"
references to "blocklist".
This commit is contained in:
Hans-Christoph Steiner 2021-06-17 14:46:51 +02:00 committed by Jochen Sprickerhof
parent 8667073188
commit 78d37bb13b
7 changed files with 11 additions and 11 deletions

View file

@ -44,7 +44,7 @@ done
cd /vagrant/cache
# make links for `android update sdk` to use and delete
blacklist="build-tools_r17-linux.zip
blocklist="build-tools_r17-linux.zip
build-tools_r18.0.1-linux.zip
build-tools_r18.1-linux.zip
build-tools_r18.1.1-linux.zip
@ -66,7 +66,7 @@ blacklist="build-tools_r17-linux.zip
latestm2=`ls -1 android_m2repository*.zip | sort -n | tail -1`
for f in $latestm2 android-[0-9]*.zip platform-[0-9]*.zip build-tools_r*-linux.zip; do
rm -f ${ANDROID_HOME}/temp/$f
if [[ $blacklist != *$f* ]]; then
if [[ $blocklist != *$f* ]]; then
ln -s /vagrant/cache/$f ${ANDROID_HOME}/temp/
fi
done