This commit is contained in:
2025-04-15 10:34:07 +03:00
parent 35982a0ae7
commit 6df5baa457
10 changed files with 63 additions and 55 deletions

View File

@@ -51,6 +51,10 @@ func InstallCmd() *cli.Command {
return err
}
if err := utils.ExitIfCantDropCapsToAlrUser(); err != nil {
return err
}
ctx := c.Context
args := c.Args()
@@ -62,7 +66,7 @@ func InstallCmd() *cli.Command {
New(ctx).
WithConfig().
WithDB().
WithReposNoPull().
WithRepos().
WithDistroInfo().
WithManager().
Build()
@@ -81,12 +85,6 @@ func InstallCmd() *cli.Command {
}
defer cleanup()
if deps.Cfg.AutoPull() {
if err := deps.Repos.Pull(ctx, deps.Cfg.Repos()); err != nil {
return cliutils.FormatCliExit(gotext.Get("Error pulling repositories"), err)
}
}
err = builder.InstallPkgs(
ctx,
&build.BuildArgs{