From b0a6b486a121351ad1bf96aea41eb1d479b3c15c Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Fri, 17 Feb 2023 15:19:40 +0100 Subject: [PATCH] distro/test: set dnf-json path for solver The value comes from the command line args of the test binary (osbuild-composer-manifest-tests). It works in our tests because we use the default value, but if it was set differently it would have been ignored. --- internal/distro/distro_test_common/distro_test_common.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/distro/distro_test_common/distro_test_common.go b/internal/distro/distro_test_common/distro_test_common.go index c687e0940..b29c98be9 100644 --- a/internal/distro/distro_test_common/distro_test_common.go +++ b/internal/distro/distro_test_common/distro_test_common.go @@ -165,6 +165,7 @@ func getImageTypePkgSpecSets(imageType distro.ImageType, bp blueprint.Blueprint, imgPackageSets := imageType.PackageSets(bp, options, repos) solver := dnfjson.NewSolver(imageType.Arch().Distro().ModulePlatformID(), imageType.Arch().Distro().Releasever(), imageType.Arch().Name(), cacheDir) + solver.SetDNFJSONPath(dnfJsonPath) depsolvedSets := make(map[string][]rpmmd.PackageSpec) for name, packages := range imgPackageSets { res, err := solver.Depsolve(packages)