This commit is contained in:
2025-04-15 00:20:57 +03:00
parent 613dc41fdf
commit fe3acf5b85
6 changed files with 126 additions and 118 deletions

View File

@@ -31,7 +31,6 @@ import (
"gitea.plemya-x.ru/Plemya-x/ALR/internal/types"
"gitea.plemya-x.ru/Plemya-x/ALR/internal/utils"
"gitea.plemya-x.ru/Plemya-x/ALR/pkg/build"
"gitea.plemya-x.ru/Plemya-x/ALR/pkg/distro"
"gitea.plemya-x.ru/Plemya-x/ALR/pkg/manager"
)
@@ -69,6 +68,7 @@ func InstallCmd() *cli.Command {
WithConfig().
WithDB().
WithReposNoPull().
WithDistroInfo().
Build()
if err != nil {
return err
@@ -93,11 +93,6 @@ func InstallCmd() *cli.Command {
return err
}
info, err := distro.ParseOSRelease(ctx)
if err != nil {
return cliutils.FormatCliExit(gotext.Get("Error parsing os release"), err)
}
err = builder.InstallPkgs(
ctx,
&build.BuildArgs{
@@ -105,7 +100,7 @@ func InstallCmd() *cli.Command {
Clean: c.Bool("clean"),
Interactive: c.Bool("interactive"),
},
Info: info,
Info: deps.Info,
PkgFormat_: build.GetPkgFormat(mgr),
},
args.Slice(),