From 6220a954ef32fec18258b4feab6494aa016764e0 Mon Sep 17 00:00:00 2001 From: kitsunyan Date: Thu, 31 May 2018 09:56:07 +0300 Subject: Simplify alpm initialization --- src/feature/syncinfo.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/feature/syncinfo.nim') diff --git a/src/feature/syncinfo.nim b/src/feature/syncinfo.nim index b0765f4..fc1510b 100644 --- a/src/feature/syncinfo.nim +++ b/src/feature/syncinfo.nim @@ -103,8 +103,7 @@ proc handleSyncInfo*(args: seq[Argument], config: Config): int = let (_, callArgs) = checkAndRefresh(config.color, args) let targets = args.packageTargets(false) - let (syncTargets, checkAurNames) = withAlpm(config.root, config.db, - config.dbs, config.arch, handle, dbs, errors): + let (syncTargets, checkAurNames) = withAlpmConfig(config, true, handle, dbs, errors): for e in errors: printError(config.color, e) findSyncTargets(handle, dbs, targets, false, false) -- cgit v1.2.3-70-g09d2