From 047ab2c2dbf27bf74bd3d60c0ec80e4fbcbf197e Mon Sep 17 00:00:00 2001 From: kitsunyan Date: Sat, 28 Apr 2018 22:34:21 +0300 Subject: Update messages --- src/feature/syncinstall.nim | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/feature/syncinstall.nim b/src/feature/syncinstall.nim index 0210d4f..c224608 100644 --- a/src/feature/syncinstall.nim +++ b/src/feature/syncinstall.nim @@ -954,8 +954,6 @@ proc obtainAurPackageInfos(config: Config, rpcInfos: seq[RpcPackageInfo], let upgradeRpcInfos = upgradeStructs.filter(p => p.needed).map(p => p.rpcInfo) let fullRpcInfos = targetRpcInfos & upgradeRpcInfos - if fullRpcInfos.len > 0 and not printMode: - echo(tr"downloading full package descriptions...") let (pkgInfos, errors) = getAurPackageInfo(fullRpcInfos.map(i => i.name), some(fullRpcInfos), config.arch, proc (a: int, b: int) = discard) @@ -1030,8 +1028,11 @@ proc handleSyncInstall*(args: seq[Argument], config: Config): int = checkAurNames withAur(): - if checkAurNamesFull.len > 0 and printFormat.isNone: - printColon(config.color, tr"Checking AUR database...") + if printFormat.isNone and (checkAurNamesFull.len > 0 or build): + printColon(config.color, tr"Resolving build targets...") + if checkAurNamesFull.len > 0: + echo(tr"checking AUR database...") + let (rpcInfos, rerrors) = getRpcPackageInfo(checkAurNamesFull) for e in rerrors: printError(config.color, e) @@ -1096,7 +1097,7 @@ proc handleSyncInstall*(args: seq[Argument], config: Config): int = neededPacmanTargets.len > 0 let (buildPkgInfos, obtainErrorMessages) = if checkPacmanPkgInfos: (block: - printColon(config.color, tr"Checking repositories...") + echo(tr"checking official repositories...") obtainBuildPkgInfos[PackageInfo](config, pacmanTargets)) else: (@[], @[]) -- cgit v1.2.3-70-g09d2