mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-21 10:58:23 +00:00
fix gpg setting
Init is actually never called and I have no clue why it is there if it is not called. Take this opportunity to introduce a New function which only does the helper lookup and panics iff that fails. Panic may be a bit too aggressive, but seems the most certain way to get out of not finding a suitable gpg1 binary.
This commit is contained in:
1 parent
f89e322ece
commit
5a713534c6
3 files changed
+32
-28
No files matched your search
+2
-2
@@ -400,7 +400,7 @@ func (context *AptlyContext) GetSigner() pgp.Signer {
|
||||
defer context.Unlock()
|
||||
|
||||
if context.pgpProvider() == "gpg" { // nolint: goconst
|
||||
return &pgp.GpgSigner{}
|
||||
return pgp.NewGpgSigner()
|
||||
}
|
||||
|
||||
return &pgp.GoSigner{}
|
||||
@@ -412,7 +412,7 @@ func (context *AptlyContext) GetVerifier() pgp.Verifier {
|
||||
defer context.Unlock()
|
||||
|
||||
if context.pgpProvider() == "gpg" { // nolint: goconst
|
||||
return &pgp.GpgVerifier{}
|
||||
return pgp.NewGpgVerifier()
|
||||
}
|
||||
|
||||
return &pgp.GoVerifier{}
|
||||
|
||||
Reference in new issue
Block a user