mirror of
https://github.com/release-engineering/dist-git.git
synced 2025-02-23 15:02:54 +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
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue