cloudapi: copy all Repository fields to RepoConfig
This commit is contained in:
parent
2d0755b924
commit
679028bb8e
1 changed files with 10 additions and 0 deletions
|
|
@ -1190,5 +1190,15 @@ func genRepoConfig(repo Repository) (*rpmmd.RepoConfig, error) {
|
|||
return nil, HTTPError(ErrorInvalidRepository)
|
||||
}
|
||||
|
||||
if repo.CheckGpg != nil {
|
||||
repoConfig.CheckGPG = *repo.CheckGpg
|
||||
}
|
||||
if repo.GpgKey != nil {
|
||||
repoConfig.GPGKey = *repo.GpgKey
|
||||
}
|
||||
if repo.IgnoreSsl != nil {
|
||||
repoConfig.IgnoreSSL = *repo.IgnoreSsl
|
||||
}
|
||||
|
||||
return repoConfig, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue