From 1d17940ce98bce15ddb3cfb7e1c6104085808981 Mon Sep 17 00:00:00 2001 From: morganamilo Date: Fri, 20 Jul 2018 20:42:47 +0100 Subject: [PATCH] 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. --- depCheck.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/depCheck.go b/depCheck.go index 81ef7947..01b6cccd 100644 --- a/depCheck.go +++ b/depCheck.go @@ -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