mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 17:17:22 +01:00
Merge pull request #571 from Morganamilo/abort-conflict
Abort ealy when there's conflicts with --noconfirm
This commit is contained in:
commit
0e5cd51910
@ -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 New Issue
Block a user