diff options
Diffstat (limited to 'sec-keys/openpgp-keys-gentoo-developers/files/keyring-mangler.py')
-rw-r--r-- | sec-keys/openpgp-keys-gentoo-developers/files/keyring-mangler.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sec-keys/openpgp-keys-gentoo-developers/files/keyring-mangler.py b/sec-keys/openpgp-keys-gentoo-developers/files/keyring-mangler.py index 90b4ff68357e..81e7886af56e 100644 --- a/sec-keys/openpgp-keys-gentoo-developers/files/keyring-mangler.py +++ b/sec-keys/openpgp-keys-gentoo-developers/files/keyring-mangler.py @@ -91,5 +91,8 @@ for key in gpg.list_keys(sigs=True): good_keys.append(key["fingerprint"]) +if len(good_keys) <= len(AUTHORITY_KEYS): + raise RuntimeError("No valid developer keys were found!") + with open(armored_output, "w", encoding="utf8") as keyring: keyring.write(gpg.export_keys(good_keys)) |