osbuild-worker: Correct cast of dnfjson error in depsolve job

This error is failing to parse correctly on the workers as a
dnfjson.Error. The old rpmmd.DNFError was returned by pointer, however
the internal/dnfjson package returns the Error by value.
This commit is contained in:
Sanne Raymaekers 2022-06-08 18:33:59 +02:00
parent ff408aa68f
commit 8d5cdfdd57

View file

@ -46,7 +46,7 @@ func (impl *DepsolveJobImpl) Run(job worker.Job) error {
result.PackageSpecs, err = impl.depsolve(args.PackageSets, args.ModulePlatformID, args.Arch, args.Releasever)
if err != nil {
switch e := err.(type) {
case *dnfjson.Error:
case dnfjson.Error:
// Error originates from dnf-json
switch e.Kind {
case "DepsolveError":