Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion internal/cloudapi/v2/depsolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ func (request *DepsolveRequest) Depsolve(df *distrofactory.Factory, rr *reporegi
if err != nil {
return nil, HTTPError(ErrorUnsupportedImageType)
}

// image type may have "tagged" repos that are only available for this
// image type so we need to re-read
repos, err = rr.ReposByImageTypeName(imageType.Arch().Distro().Name(), imageType.Arch().Name(), imageType.Name())
if err != nil {
return nil, HTTPError(ErrorUnsupportedImageType)
}
// use the same seed for all images so we get the same IDs
bigSeed, err := rand.Int(rand.Reader, big.NewInt(math.MaxInt64))
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/weldr/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (api *API) validDistros(arch string) []string {
continue
}

_, err := api.repoRegistry.DistroHasRepos(distroName, arch)
_, err := api.repoRegistry.ReposByArchName(distroName, arch, false)
if err == nil {
distros = append(distros, distroName)
} else {
Expand Down
Loading