Skip to content

Commit

Permalink
Fix pgp key import for multiple keys
Browse files Browse the repository at this point in the history
  • Loading branch information
episource committed Jan 6, 2020
1 parent dc70c11 commit fe0138c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .build-lib/ci-library.sh
Expand Up @@ -116,14 +116,16 @@ function list_packages() {
# extracts all 'validpgpkeys' from the PKGBUILDs
# extracts all 'validpgpkeys' listed in the PKGBUILDs belonging to $PACKAGES
function get_validpgpkeys() {
_VALIDPGPKEYS=()
local -A _VALIDPGPKEYS
for p in "${PACKAGES[@]}"; do
local validpgpkeys=()
_package_info "$p" validpgpkeys
_VALIDPGPKEYS+=$validpgpkeys
for key in "${validpgpkeys[@]}"; do
_VALIDPGPKEYS["$key"]=1
done
done

echo "${_VALIDPGPKEYS[@]}"
echo "${!_VALIDPGPKEYS[*]}"
}

# Sort packages by dependency
Expand Down Expand Up @@ -187,4 +189,4 @@ function build_packages() {


_ensure-var "REPODIR"
_ensure-var "REPONAME"
_ensure-var "REPONAME"

0 comments on commit fe0138c

Please sign in to comment.