Skip to content

Commit

Permalink
cmd: add "archName" to gen-manifests mock dnf solver URLs
Browse files Browse the repository at this point in the history
This commit adds the manifest name to the mock depsolve URL output
so that we can test for it from inside otk. This will help with
issues like https://github.com/osbuild/otk/pull/255/files#r1782953752
  • Loading branch information
mvo5 authored and supakeen committed Oct 2, 2024
1 parent cf07d2d commit a26e25b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gen-manifests/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ func mockDepsolve(packageSets map[string][]rpmmd.PackageSet, repos []rpmmd.RepoC
panic(err)
}
url.Host = "example.com"
url.Path = "pseudo-repo-pkg:" + url.Path
url.Path = fmt.Sprintf("passed-arch:%s/passed-repo:%s", archName, url.Path)
specSet = append(specSet, rpmmd.PackageSpec{
Name: url.String(),
RemoteLocation: url.String(),
Expand Down

0 comments on commit a26e25b

Please sign in to comment.