From a711edbcc037a0d4ff1f273440f70e513013918f Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Mon, 23 Dec 2024 21:12:08 +0300 Subject: [PATCH] fix: ignore empty dependencies --- pkg/build/findDeps.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/build/findDeps.go b/pkg/build/findDeps.go index 6cac931..115e659 100644 --- a/pkg/build/findDeps.go +++ b/pkg/build/findDeps.go @@ -47,12 +47,15 @@ func rpmFindDependencies(ctx context.Context, pkgInfo *nfpm.Info, dirs types.Dir cmd.Stdout = &out cmd.Stderr = &stderr if err := cmd.Run(); err != nil { + log.Error(stderr.String()) return err } dependencies := strings.Split(strings.TrimSpace(out.String()), "\n") for _, dep := range dependencies { - updateFunc(dep) + if dep != "" { + updateFunc(dep) + } } return nil