aboutsummaryrefslogtreecommitdiff
path: root/src/feature/localquery.nim
diff options
context:
space:
mode:
authorkitsunyan2018-04-18 20:55:35 +0000
committerkitsunyan2018-04-18 20:55:35 +0000
commit5460261110d5766e25fa086c5f52193070c60583 (patch)
treea2bb736b71cdfa815b0ded01b0d08a4daf00bbcc /src/feature/localquery.nim
parentd884cac14c0dc2dfb713f2aa307d54fa32695ee4 (diff)
Handle "--asdeps" and "--asexplicit" more accurately
Diffstat (limited to 'src/feature/localquery.nim')
-rw-r--r--src/feature/localquery.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/localquery.nim b/src/feature/localquery.nim
index d2beaa5..f4142ee 100644
--- a/src/feature/localquery.nim
+++ b/src/feature/localquery.nim
@@ -7,7 +7,7 @@ proc handleQueryOrphans*(args: seq[Argument], config: Config): int =
let (installed, orphans, _) = withAlpm(config.root, config.db, newSeq[string](),
config.arch, handle, dbs, errors):
for e in errors: printError(config.color, e)
- queryUnrequired(handle, true, false, @[])
+ queryUnrequired(handle, true, false, initSet[string]())
let targets = args.targets.map(t => (if t[0 .. 5] == "local/": t[6 .. ^1] else: t))