aboutsummaryrefslogtreecommitdiff
path: root/src/common.nim
diff options
context:
space:
mode:
authorkitsunyan2018-04-18 20:55:35 +0000
committerkitsunyan2018-04-18 20:55:35 +0000
commit5460261110d5766e25fa086c5f52193070c60583 (patch)
treea2bb736b71cdfa815b0ded01b0d08a4daf00bbcc /src/common.nim
parentd884cac14c0dc2dfb713f2aa307d54fa32695ee4 (diff)
Handle "--asdeps" and "--asexplicit" more accurately
Diffstat (limited to 'src/common.nim')
-rw-r--r--src/common.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common.nim b/src/common.nim
index c2f7053..d1c4daa 100644
--- a/src/common.nim
+++ b/src/common.nim
@@ -144,7 +144,7 @@ proc mapAurTargets*[T: RpcPackageInfo](targets: seq[SyncPackageTarget],
foundInfo: target.foundInfo, pkgInfo: none(T)))
proc queryUnrequired*(handle: ptr AlpmHandle, withOptional: bool, withoutOptional: bool,
- assumeExplicit: seq[string]): (HashSet[string], HashSet[string], HashSet[string]) =
+ assumeExplicit: HashSet[string]): (HashSet[string], HashSet[string], HashSet[string]) =
let (explicit, dependsTable, alternatives) = block:
var explicit = newSeq[string]()
var dependsTable = initTable[string,
@@ -173,7 +173,7 @@ proc queryUnrequired*(handle: ptr AlpmHandle, withOptional: bool, withoutOptiona
if provides.len > 0:
alternatives.add($pkg.name, provides)
- (explicit.toSet + assumeExplicit.toSet, dependsTable, alternatives)
+ (explicit.toSet + assumeExplicit, dependsTable, alternatives)
let providedBy = lc[(y, x.key) | (x <- alternatives.namedPairs, y <- x.value),
tuple[reference: PackageReference, name: string]]