1 |
commit: 0ae03c7004b64ffc0592625baec4ac263f1778ad |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 18 13:57:44 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 18 13:59:22 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=0ae03c70 |
7 |
|
8 |
create-dev-keyrings: Add timeout for gpg call |
9 |
|
10 |
create-dev-keyrings.bash | 2 +- |
11 |
1 file changed, 1 insertion(+), 1 deletion(-) |
12 |
|
13 |
diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash |
14 |
index 7afed08..9190004 100755 |
15 |
--- a/create-dev-keyrings.bash |
16 |
+++ b/create-dev-keyrings.bash |
17 |
@@ -21,7 +21,7 @@ grab_keys() { |
18 |
local remaining=( "${@}" ) |
19 |
|
20 |
while :; do |
21 |
- gpg -q --recv-keys "${remaining[@]}" || : |
22 |
+ timeout 5m gpg -q --recv-keys "${remaining[@]}" || : |
23 |
missing=() |
24 |
for key in "${remaining[@]}"; do |
25 |
gpg --list-public "${key}" &>/dev/null || missing+=( "${key}" ) |