tools/confidence_test.sh: now works with gnupg-2.0 again
This commit is contained in:
committed by
Tom Limoncelli
parent
d9f1c9ef1f
commit
ca1d10ba80
@@ -22,7 +22,7 @@ remove_line "$BB_ADMINS" "$KEYNAME"
|
|||||||
|
|
||||||
|
|
||||||
# remove the admin key from the pubring
|
# remove the admin key from the pubring
|
||||||
$GPG --no-permission-warning --homedir="$KEYRINGDIR" --batch --yes --delete-key "$KEYNAME"
|
$GPG --no-permission-warning --homedir="$KEYRINGDIR" --batch --yes --delete-key "$KEYNAME" || true
|
||||||
pubring_path=$(get_pubring_path)
|
pubring_path=$(get_pubring_path)
|
||||||
vcs_add "$pubring_path" "$KEYRINGDIR/trustdb.gpg" "$BB_ADMINS"
|
vcs_add "$pubring_path" "$KEYRINGDIR/trustdb.gpg" "$BB_ADMINS"
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,15 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# NB: This is copied from _blackbox_common.sh
|
||||||
|
function get_pubring_path() {
|
||||||
|
: "${KEYRINGDIR:=keyrings/live}" ;
|
||||||
|
if [[ -f "${KEYRINGDIR}/pubring.gpg" ]]; then
|
||||||
|
echo "${KEYRINGDIR}/pubring.gpg"
|
||||||
|
else
|
||||||
|
echo "${KEYRINGDIR}/pubring.kbx"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
function PHASE() {
|
function PHASE() {
|
||||||
echo '********************'
|
echo '********************'
|
||||||
echo '********************'
|
echo '********************'
|
||||||
|
|||||||
Reference in New Issue
Block a user