rpmmd/repository: reinstate metadata_expire
This is saved on disk, so needs to be read in and passed on. Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
parent
116a7605dd
commit
a4ebf1cd28
1 changed files with 14 additions and 12 deletions
|
|
@ -16,12 +16,13 @@ import (
|
|||
)
|
||||
|
||||
type repository struct {
|
||||
Name string `json:"name"`
|
||||
BaseURL string `json:"baseurl,omitempty"`
|
||||
Metalink string `json:"metalink,omitempty"`
|
||||
MirrorList string `json:"mirrorlist,omitempty"`
|
||||
GPGKey string `json:"gpgkey,omitempty"`
|
||||
RHSM bool `json:"rhsm,omitempty"`
|
||||
Name string `json:"name"`
|
||||
BaseURL string `json:"baseurl,omitempty"`
|
||||
Metalink string `json:"metalink,omitempty"`
|
||||
MirrorList string `json:"mirrorlist,omitempty"`
|
||||
GPGKey string `json:"gpgkey,omitempty"`
|
||||
RHSM bool `json:"rhsm,omitempty"`
|
||||
MetadataExpire string `json:"metadata_expire,omitempty"`
|
||||
}
|
||||
|
||||
type dnfRepoConfig struct {
|
||||
|
|
@ -210,12 +211,13 @@ func LoadRepositories(confPaths []string, distro string) (map[string][]RepoConfi
|
|||
for arch, repos := range reposMap {
|
||||
for _, repo := range repos {
|
||||
config := RepoConfig{
|
||||
Name: repo.Name,
|
||||
BaseURL: repo.BaseURL,
|
||||
Metalink: repo.Metalink,
|
||||
MirrorList: repo.MirrorList,
|
||||
GPGKey: repo.GPGKey,
|
||||
RHSM: repo.RHSM,
|
||||
Name: repo.Name,
|
||||
BaseURL: repo.BaseURL,
|
||||
Metalink: repo.Metalink,
|
||||
MirrorList: repo.MirrorList,
|
||||
GPGKey: repo.GPGKey,
|
||||
RHSM: repo.RHSM,
|
||||
MetadataExpire: repo.MetadataExpire,
|
||||
}
|
||||
|
||||
repoConfigs[arch] = append(repoConfigs[arch], config)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue