From 43dafe87fb0e8367e9b32ddbf9091c22426ae649 Mon Sep 17 00:00:00 2001 From: Tomas Hozza Date: Fri, 11 Mar 2022 09:10:14 +0100 Subject: [PATCH] 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 --- internal/rpmmd/repository.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/rpmmd/repository.go b/internal/rpmmd/repository.go index ff0acb841..04e37d854 100644 --- a/internal/rpmmd/repository.go +++ b/internal/rpmmd/repository.go @@ -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,