rpmmd: make the on-disk format match the use
The 'id' field in the json files is exposed as 'name' in the weldr API, and that is now its only use. Rename it to match. Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
parent
48079b3a4d
commit
116a7605dd
5 changed files with 30 additions and 30 deletions
|
|
@ -16,7 +16,7 @@ import (
|
|||
)
|
||||
|
||||
type repository struct {
|
||||
Id string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
BaseURL string `json:"baseurl,omitempty"`
|
||||
Metalink string `json:"metalink,omitempty"`
|
||||
MirrorList string `json:"mirrorlist,omitempty"`
|
||||
|
|
@ -210,7 +210,7 @@ func LoadRepositories(confPaths []string, distro string) (map[string][]RepoConfi
|
|||
for arch, repos := range reposMap {
|
||||
for _, repo := range repos {
|
||||
config := RepoConfig{
|
||||
Name: repo.Id,
|
||||
Name: repo.Name,
|
||||
BaseURL: repo.BaseURL,
|
||||
Metalink: repo.Metalink,
|
||||
MirrorList: repo.MirrorList,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue