rpmmd: pass repo name to dnf-json
The repo name is already part of the `rpmmd.RepoConfig` structure. Do not ignore when calling `dnf-json` and and pass it the value. Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
parent
f9d0412316
commit
43dafe87fb
1 changed files with 2 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ type repository struct {
|
|||
|
||||
type dnfRepoConfig struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name,omitempty"`
|
||||
BaseURL string `json:"baseurl,omitempty"`
|
||||
Metalink string `json:"metalink,omitempty"`
|
||||
MirrorList string `json:"mirrorlist,omitempty"`
|
||||
|
|
@ -409,6 +410,7 @@ func (repo RepoConfig) toDNFRepoConfig(rpmmd *rpmmdImpl, i int, arch, releasever
|
|||
id := strconv.Itoa(i)
|
||||
dnfRepo := dnfRepoConfig{
|
||||
ID: id,
|
||||
Name: repo.Name,
|
||||
BaseURL: repo.BaseURL,
|
||||
Metalink: repo.Metalink,
|
||||
MirrorList: repo.MirrorList,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue