aboutsummaryrefslogtreecommitdiff
path: root/src/common.nim
diff options
context:
space:
mode:
authorBenjamin Shirley-Quirk2020-08-04 21:52:42 +0000
committerBenjamin Shirley-Quirk2020-08-04 21:52:42 +0000
commit8ca6a6ae081fa6381e79b43d1363e5e5ce00c9ba (patch)
tree1885b9a46f54cdf85e25f2357b3f2992703ead90 /src/common.nim
parent4fad58d7be80d90058cf627a2f9bccbd6016e72b (diff)
removed deprecated []= warnings
Diffstat (limited to 'src/common.nim')
-rw-r--r--src/common.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common.nim b/src/common.nim
index a7d59c4..6b15b4c 100644
--- a/src/common.nim
+++ b/src/common.nim
@@ -242,10 +242,10 @@ proc queryUnrequired*(handle: ptr AlpmHandle, withOptional: bool, withoutOptiona
installed.add(pkg.toPackageReference)
if pkg.reason == AlpmReason.explicit:
explicit &= $pkg.name
- dependsTable.add($pkg.name,
- depends.map(x => (x, false)) + optional.map(x => (x, true)))
+ dependsTable[$pkg.name]=
+ depends.map(x => (x, false)) + optional.map(x => (x, true))
if provides.len > 0:
- alternatives.add($pkg.name, provides)
+ alternatives[$pkg.name]= provides
(installed, explicit.toHashSet + assumeExplicit, dependsTable, alternatives)