Refactor GPG signer/verifier

Goal is to make it easier to plug in another implementation.
This commit is contained in:
Andrey Smirnov
2017-05-23 02:54:56 +03:00
parent c026106352
commit 1be8d39105
21 changed files with 135 additions and 110 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ import (
"github.com/smira/aptly/aptly"
"github.com/smira/aptly/database"
"github.com/smira/aptly/deb"
"github.com/smira/aptly/pgp"
"github.com/smira/aptly/utils"
)
@@ -296,7 +297,7 @@ func apiReposPackageFromDir(c *gin.Context) {
return
}
verifier := &utils.GpgVerifier{}
verifier := &pgp.GpgVerifier{}
var (
sources []string