Don't compain about missing keys when using custom keyring.

This commit is contained in:
Andrey Smirnov
2014-02-13 00:05:21 +04:00
parent fb2e1adb5c
commit 796489e88d
+1 -1
View File
@@ -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)")
}