mirror of
https://github.com/Jguer/yay
synced 2024-11-05 16:07:15 +00:00
Remove redundant attempts to set install reasons (#2196)
Redundant attempts took place when the installation by pacman was exited with code 1, i.e. an real error occurred or installation was simply cancelled.
This commit is contained in:
parent
1335e9b4e0
commit
35ee42d343
1 changed files with 4 additions and 1 deletions
|
@ -426,6 +426,9 @@ func (installer *Installer) installSyncPackages(ctx context.Context, cmdArgs *pa
|
|||
|
||||
errShow := installer.exeCmd.Show(installer.exeCmd.BuildPacmanCmd(ctx,
|
||||
arguments, installer.targetMode, noConfirm))
|
||||
if errShow != nil {
|
||||
return errShow
|
||||
}
|
||||
|
||||
if errD := asdeps(ctx, installer.exeCmd, installer.targetMode, cmdArgs, syncDeps.ToSlice()); errD != nil {
|
||||
return errD
|
||||
|
@ -435,5 +438,5 @@ func (installer *Installer) installSyncPackages(ctx context.Context, cmdArgs *pa
|
|||
return errE
|
||||
}
|
||||
|
||||
return errShow
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue