From bd368e83b3dceea89deff4eaf2b8103251538336 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Apr 07 2016 15:53:39 +0000 Subject: Do not request the keyring if it is not needed If there are no signatures that could be verified, a keyring would be pointless. --- diff --git a/spectool b/spectool index 3be29b6..599cd23 100755 --- a/spectool +++ b/spectool @@ -460,8 +460,9 @@ def verify(spec, opts, selected): if sig[:-4] not in files: keyring = sig break - else: - error('Please specify the keyring using --keyring option.') + + if sigs and keyring is None: + error('Please specify the keyring using --keyring option.') for path in files: verify_file(path, sigs, keyring)