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:
Tomas Hozza 2022-03-11 09:10:14 +01:00 committed by Tom Gundersen
parent f9d0412316
commit 43dafe87fb

View file

@ -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,