From a735b928f8de334e804c71935303b1f9b2e28512 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Fri, 25 Mar 2011 20:29:30 +0100 Subject: [PATCH] ignore gpg errors Signed-off-by: Joerg Jaspert --- scripts/debian/buildd-add-keys | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/debian/buildd-add-keys b/scripts/debian/buildd-add-keys index ddb56a42..06ff011d 100755 --- a/scripts/debian/buildd-add-keys +++ b/scripts/debian/buildd-add-keys @@ -221,8 +221,9 @@ for file in $(ls -1 ${INCOMING}/*.key); do # rollover works. 3 won't, they have to rm one first # We need to check for the amount of keys ARCHKEYRING="${base}/${ARCH}/keyring.gpg" + trap - ERR EXIT TERM HUP INT QUIT - KEYNO=$(gpg ${DEFGPGOPT} --keyring "${ARCHKEYRING}" --with-colons --list-keys "buildd_${ARCH}-${BUILDD}@buildd.debian.org" | grep -c '^pub:') + KEYNO=$(gpg ${DEFGPGOPT} --keyring "${ARCHKEYRING}" --with-colons --list-keys "buildd_${ARCH}-${BUILDD}@buildd.debian.org" | grep -c '^pub:' || /bin/true ) if [ ${KEYNO} -gt 2 ]; then DATE=$(date -Is) mv "${INCOMING}/${file}" "${ERRORS}/toomany.${file}.${DATE}" -- 2.39.5