cloudapi/v2: expose repo metadata verification
This commit is contained in:
parent
b90f51ff33
commit
14a9b2395d
3 changed files with 68 additions and 57 deletions
|
|
@ -1371,6 +1371,9 @@ func genRepoConfig(repo Repository) (*rpmmd.RepoConfig, error) {
|
|||
if repo.IgnoreSsl != nil {
|
||||
repoConfig.IgnoreSSL = *repo.IgnoreSsl
|
||||
}
|
||||
if repo.CheckRepoGpg != nil {
|
||||
repoConfig.CheckRepoGPG = *repo.CheckRepoGpg
|
||||
}
|
||||
|
||||
if repoConfig.CheckGPG && len(repoConfig.GPGKeys) == 0 {
|
||||
return nil, HTTPError(ErrorNoGPGKey)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue