mirror of
https://github.com/release-engineering/dist-git.git
synced 2025-02-23 23:12:55 +00:00
Avoid using "whitelist" word
This commit is contained in:
parent
ea98aabd22
commit
738dc51b8d
1 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,7 @@ fi
|
||||||
|
|
||||||
pushd "$pkg_git_dir" > /dev/null || exit 1
|
pushd "$pkg_git_dir" > /dev/null || exit 1
|
||||||
|
|
||||||
whitelist=()
|
allowlist=()
|
||||||
|
|
||||||
# find sources that are referenced by the latest commit in any of the branches
|
# 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
|
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
|
# skip projects using the new format
|
||||||
test $# -eq 0 && continue
|
test $# -eq 0 && continue
|
||||||
test $# -ne 2 && die "Unsupported format. Only the old '<SUM> <FILENAME' format is used."
|
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 < <(git show "$branch":sources)
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ while read -r file; do
|
||||||
hash=$2
|
hash=$2
|
||||||
|
|
||||||
keep=false
|
keep=false
|
||||||
for source in "${whitelist[@]}"; do
|
for source in "${allowlist[@]}"; do
|
||||||
IFS=','
|
IFS=','
|
||||||
set -- $source
|
set -- $source
|
||||||
IFS=$old_IFS
|
IFS=$old_IFS
|
||||||
|
|
Loading…
Add table
Reference in a new issue