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/localquery.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/feature/localquery.nim') diff --git a/src/feature/localquery.nim b/src/feature/localquery.nim index ccc1311..f8436cd 100644 --- a/src/feature/localquery.nim +++ b/src/feature/localquery.nim @@ -4,8 +4,7 @@ import "../wrapper/alpm" proc handleQueryOrphans*(args: seq[Argument], config: Config): int = - let (installed, orphans, _) = withAlpm(config.root, config.db, newSeq[string](), - config.arch, handle, dbs, errors): + let (installed, orphans, _) = withAlpmConfig(config, false, handle, dbs, errors): for e in errors: printError(config.color, e) queryUnrequired(handle, true, false, initSet[string]()) -- cgit v1.2.3-70-g09d2