weldr: Use GetAllDistroSources in allRepository* functions
This commit is contained in:
parent
76e65e88c8
commit
c1da403dc0
1 changed files with 2 additions and 2 deletions
|
|
@ -3027,7 +3027,7 @@ func (api *API) allRepositoriesByImageType(imageType distro.ImageType) ([]rpmmd.
|
|||
}
|
||||
|
||||
repos := append([]rpmmd.RepoConfig{}, imageTypeRepos...)
|
||||
for id, source := range api.store.GetAllSourcesByID() {
|
||||
for id, source := range api.store.GetAllDistroSources(imageType.Arch().Distro().Name()) {
|
||||
repos = append(repos, source.RepoConfig(id))
|
||||
}
|
||||
|
||||
|
|
@ -3042,7 +3042,7 @@ func (api *API) allRepositories(distroName string) ([]rpmmd.RepoConfig, error) {
|
|||
}
|
||||
|
||||
repos := append([]rpmmd.RepoConfig{}, archRepos...)
|
||||
for id, source := range api.store.GetAllSourcesByID() {
|
||||
for id, source := range api.store.GetAllDistroSources(distroName) {
|
||||
repos = append(repos, source.RepoConfig(id))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue