Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gen-manifests: use archName in mockDepsolve() #943

Merged
merged 1 commit into from
Sep 23, 2024
Merged
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
6 changes: 3 additions & 3 deletions cmd/gen-manifests/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func makeManifestJob(
return
}
} else {
packageSpecs, repoConfigs = mockDepsolve(manifest.GetPackageSetChains(), repos)
packageSpecs, repoConfigs = mockDepsolve(manifest.GetPackageSetChains(), repos, archName)
}
_ = repoConfigs

Expand Down Expand Up @@ -369,7 +369,7 @@ func depsolve(cacheDir string, packageSets map[string][]rpmmd.PackageSet, d dist
return depsolvedSets, repoSets, nil
}

func mockDepsolve(packageSets map[string][]rpmmd.PackageSet, repos []rpmmd.RepoConfig) (map[string][]rpmmd.PackageSpec, map[string][]rpmmd.RepoConfig) {
func mockDepsolve(packageSets map[string][]rpmmd.PackageSet, repos []rpmmd.RepoConfig, archName string) (map[string][]rpmmd.PackageSpec, map[string][]rpmmd.RepoConfig) {
depsolvedSets := make(map[string][]rpmmd.PackageSpec)
repoSets := make(map[string][]rpmmd.RepoConfig)
for name, pkgSetChain := range packageSets {
Expand All @@ -386,7 +386,7 @@ func mockDepsolve(packageSets map[string][]rpmmd.PackageSet, repos []rpmmd.RepoC
Epoch: 0,
Version: ver,
Release: rel + ".fk1",
Arch: "noarch",
Arch: archName,
RemoteLocation: fmt.Sprintf("https://example.com/repo/packages/%s", pkgName),
Checksum: "sha256:" + checksum,
}
Expand Down
Loading