Avoid using "whitelist" word

This commit is contained in:
Pavel Raiskup 2021-11-23 15:55:39 +01:00
parent ea98aabd22
commit 738dc51b8d

View file

@ -38,7 +38,7 @@ fi
pushd "$pkg_git_dir" > /dev/null || exit 1
whitelist=()
allowlist=()
# find sources that are referenced by the latest commit in any of the branches
for branch in $(git for-each-ref --format="%(refname:short)" refs/heads); do
@ -49,7 +49,7 @@ for branch in $(git for-each-ref --format="%(refname:short)" refs/heads); do
# skip projects using the new format
test $# -eq 0 && continue
test $# -ne 2 && die "Unsupported format. Only the old '<SUM> <FILENAME' format is used."
whitelist+=("$hash","$filename")
allowlist+=("$hash","$filename")
done < <(git show "$branch":sources)
done
@ -68,7 +68,7 @@ while read -r file; do
hash=$2
keep=false
for source in "${whitelist[@]}"; do
for source in "${allowlist[@]}"; do
IFS=','
set -- $source
IFS=$old_IFS