Commit 6f6b1dee authored by Chaoting Liu's avatar Chaoting Liu
Browse files

recv keys before build

parent 3d12dbc3
......@@ -170,7 +170,7 @@ function get_validpgpkeys() {
# get unique keys
_VALIDPGPKEYS=($(echo "${_VALIDPGPKEYS[@]}" | tr ' ' '\n' | sort -u | tr '\n' ' '))
echo "${_VALIDPGPKEYS[@]}"
_do gpg --recv-keys "${_VALIDPGPKEYS[@]}" --keyserver keys.openpgp.org
}
# Sort packages by dependency
......@@ -241,6 +241,7 @@ function get_repository() {
# builds all $PACKAGES in the given order
function build_packages() {
_log build_step "Start building packages: ${PACKAGES[@]}"
_log get_validpgpkeys
for p in "${PACKAGES[@]}"; do
# resync to update local repo
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment