diff options
author | kitsunyan | 2018-04-25 11:30:30 +0000 |
---|---|---|
committer | kitsunyan | 2018-04-25 11:30:30 +0000 |
commit | ded1af60f3c8cec3b34cb0f35b4c87e52e76dd54 (patch) | |
tree | 1f28012eede27f5221d41e2820df83d170090e3a /src/feature/syncinstall.nim | |
parent | 315d22cd30952916683dac0c38a24b73dba4b948 (diff) |
Don't ask to view files in "--noconfirm" mode
Diffstat (limited to 'src/feature/syncinstall.nim')
-rw-r--r-- | src/feature/syncinstall.nim | 4 |
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 |