From ded1af60f3c8cec3b34cb0f35b4c87e52e76dd54 Mon Sep 17 00:00:00 2001 From: kitsunyan Date: Wed, 25 Apr 2018 14:30:30 +0300 Subject: Don't ask to view files in "--noconfirm" mode --- src/feature/syncinstall.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/feature/syncinstall.nim b/src/feature/syncinstall.nim index 3cd7eb5..0210d4f 100644 --- a/src/feature/syncinstall.nim +++ b/src/feature/syncinstall.nim @@ -418,7 +418,7 @@ proc buildFromSources(config: Config, commonArgs: seq[Argument], (none(BuildResult), cloneCode) else: proc loop(noextract: bool, showEditLoop: bool): (Option[BuildResult], int) = - let res = if showEditLoop: + let res = if showEditLoop and not noconfirm: editLoop(config, base, repoPath, gitPath, false, noconfirm) else: 'n' @@ -634,7 +634,7 @@ proc handleInstall(args: seq[Argument], config: Config, upgradeCount: int, let commentsReversed = toSeq(comments.reversed) printComments(config.color, pkgInfos[0].maintainer, commentsReversed) - let editRes = if skipEdit: + let editRes = if skipEdit or noconfirm: 'n' else: (block: let defaultYes = aur and not config.viewNoDefault -- cgit v1.2.3-70-g09d2