aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkitsunyan2018-04-25 11:30:30 +0000
committerkitsunyan2018-04-25 11:30:30 +0000
commitded1af60f3c8cec3b34cb0f35b4c87e52e76dd54 (patch)
tree1f28012eede27f5221d41e2820df83d170090e3a /src
parent315d22cd30952916683dac0c38a24b73dba4b948 (diff)
Don't ask to view files in "--noconfirm" mode
Diffstat (limited to 'src')
-rw-r--r--src/feature/syncinstall.nim4
1 files changed, 2 insertions, 2 deletions
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