From 796489e88d33f345a1b79b425662a1b82d3fa932 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Thu, 13 Feb 2014 00:05:21 +0400 Subject: [PATCH] Don't compain about missing keys when using custom keyring. --- utils/gpg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/gpg.go b/utils/gpg.go index ea0b33e5..26c64df0 100644 --- a/utils/gpg.go +++ b/utils/gpg.go @@ -73,7 +73,7 @@ func (g *GpgSigner) Init() error { return fmt.Errorf("unable to execute gpg: %s (is gpg installed?)", err) } - if len(output) == 0 { + if g.keyring == "" && g.secretKeyring == "" && len(output) == 0 { return fmt.Errorf("looks like there are no keys in gpg, please create one (official manual: http://www.gnupg.org/gph/en/manual.html)") }