kojiapi: make repo gpgkey optional
The kojiapi actually shouldn't require it as we need to build images from unsigned packages. Fixes #985
This commit is contained in:
parent
315f1afa1d
commit
9fc924fbf4
3 changed files with 5 additions and 4 deletions
|
|
@ -112,7 +112,9 @@ func (h *apiHandlers) PostCompose(ctx echo.Context) error {
|
|||
repositories := make([]rpmmd.RepoConfig, len(ir.Repositories))
|
||||
for j, repo := range ir.Repositories {
|
||||
repositories[j].BaseURL = repo.Baseurl
|
||||
repositories[j].GPGKey = repo.Gpgkey
|
||||
if repo.Gpgkey != nil {
|
||||
repositories[j].GPGKey = *repo.Gpgkey
|
||||
}
|
||||
}
|
||||
bp := &blueprint.Blueprint{}
|
||||
err = bp.Initialize()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue