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:
Lars Karlitski 2020-03-31 18:01:17 +02:00 committed by Tom Gundersen
parent cef7267a2d
commit 3a957f4b16

View file

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