mirror of
https://gitea.plemya-x.ru/Plemya-x/ALR.git
synced 2025-01-10 17:26:45 +00:00
fix: ignore empty dependencies
This commit is contained in:
parent
d5636e8094
commit
a711edbcc0
1 changed files with 4 additions and 1 deletions
|
@ -47,12 +47,15 @@ func rpmFindDependencies(ctx context.Context, pkgInfo *nfpm.Info, dirs types.Dir
|
||||||
cmd.Stdout = &out
|
cmd.Stdout = &out
|
||||||
cmd.Stderr = &stderr
|
cmd.Stderr = &stderr
|
||||||
if err := cmd.Run(); err != nil {
|
if err := cmd.Run(); err != nil {
|
||||||
|
log.Error(stderr.String())
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies := strings.Split(strings.TrimSpace(out.String()), "\n")
|
dependencies := strings.Split(strings.TrimSpace(out.String()), "\n")
|
||||||
for _, dep := range dependencies {
|
for _, dep := range dependencies {
|
||||||
updateFunc(dep)
|
if dep != "" {
|
||||||
|
updateFunc(dep)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue