mirror of
https://github.com/Jguer/yay
synced 2024-07-25 04:04:23 +00:00
Abort ealy when there's conflicts with --noconfirm
When using --nouseask, manual intervention is needed to resolve conflicts. When also useing --noconfirm the install will always fail. So abort early, before trying to install any AUR packages.
This commit is contained in:
parent
1bc8d5ef34
commit
1d17940ce9
|
@ -180,6 +180,10 @@ func (dp *depPool) CheckConflicts() (mapStringSet, error) {
|
|||
}
|
||||
|
||||
fmt.Println()
|
||||
|
||||
if config.NoConfirm && !config.UseAsk {
|
||||
return nil, fmt.Errorf("Package conflicts can not be resolved with noconfirm, aborting")
|
||||
}
|
||||
}
|
||||
|
||||
return conflicts, nil
|
||||
|
|
Loading…
Reference in a new issue