mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sec-keys.eclass: avoid heredoc in global scope
A heredoc may cause the use of a temporary file with < EAPI 9 and even then still with >= EAPI 9 if the input is large. This becomes a problem if sandboxing is applied to metadata generation. Closes: https://bugs.gentoo.org/978941 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -68,7 +68,7 @@ _sec_keys_set_globals() {
|
||||
for key in "${SEC_KEYS_VALIDPGPKEYS[@]}"; do
|
||||
fingerprint=${key%%:*}
|
||||
name=${key#${fingerprint}:}; name=${name%%:*}
|
||||
IFS=, read -r -a locations <<<"${key##*:}"
|
||||
mapfile -td ',' locations < <(printf %s "${key##*:}")
|
||||
[[ ${locations[@]} ]] || die "${ECLASS}: ${name}: PGP key remote is mandatory"
|
||||
for loc in "${locations[@]}"; do
|
||||
case ${loc} in
|
||||
|
||||
Reference in New Issue
Block a user