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:
smolx 2023-05-30 10:40:57 +02:00 committed by GitHub
parent 1335e9b4e0
commit 35ee42d343
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}