mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-30 04:20:53 +00:00
Don't compain about missing keys when using custom keyring.
This commit is contained in:
+1
-1
@@ -73,7 +73,7 @@ func (g *GpgSigner) Init() error {
|
|||||||
return fmt.Errorf("unable to execute gpg: %s (is gpg installed?)", err)
|
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)")
|
return fmt.Errorf("looks like there are no keys in gpg, please create one (official manual: http://www.gnupg.org/gph/en/manual.html)")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user