store: don't add custom repositories in PushCompose()
The weldr API already passes custom repositories, so they end up in the list twice. This is a bit awkward, because weldr passes something to the store that the store already knows about. It only works this way right now though, because the rcm API doesn't need these repositories at all. It expects all repositories to be passed.
This commit is contained in:
parent
cef7267a2d
commit
3a957f4b16
1 changed files with 1 additions and 6 deletions
|
|
@ -575,12 +575,7 @@ func (s *Store) PushCompose(imageType distro.ImageType, bp *blueprint.Blueprint,
|
|||
}
|
||||
}
|
||||
|
||||
allRepos := append([]rpmmd.RepoConfig{}, repos...)
|
||||
for _, source := range s.Sources {
|
||||
allRepos = append(allRepos, source.RepoConfig())
|
||||
}
|
||||
|
||||
manifestStruct, err := imageType.Manifest(bp.Customizations, allRepos, packages, buildPackages, imageType.Size(size))
|
||||
manifestStruct, err := imageType.Manifest(bp.Customizations, repos, packages, buildPackages, imageType.Size(size))
|
||||
if err != nil {
|
||||
return uuid.Nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue