Refactoring: make gpg verification return missing/good key IDs. #71

Eliminate "hint" on missing keys which doesn't apply to .changes.

Would be good to eventually stop using GPG and start calling golang.org/x/crypto/openpgp
This commit is contained in:
Andrey Smirnov
2015-03-18 21:34:54 +03:00
parent 7579f1998c
commit 4a57fe3c39
3 changed files with 67 additions and 23 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ func (c *Changes) VerifyAndParse(acceptUnsigned, ignoreSignature bool, verifier
}
if isClearSigned && !ignoreSignature {
err = verifier.VerifyClearsigned(input)
_, err = verifier.VerifyClearsigned(input, false)
if err != nil {
return err
}
+1 -1
View File
@@ -263,7 +263,7 @@ func (repo *RemoteRepo) Fetch(d aptly.Downloader, verifier utils.Verifier) error
}
defer inrelease.Close()
err = verifier.VerifyClearsigned(inrelease)
_, err = verifier.VerifyClearsigned(inrelease, true)
if err != nil {
goto splitsignature
}