diff options
author | kitsunyan | 2019-12-20 04:52:44 +0000 |
---|---|---|
committer | kitsunyan | 2019-12-20 04:52:44 +0000 |
commit | cb433c355d168a0a0c0de2538b372f1fab18b868 (patch) | |
tree | 9fe29907e0b48ebb09bf0459ab0147fb84133d1d /src/package.nim | |
parent | 90d4c4be3bc15b2f594a0046c07b6f8654659ad5 (diff) |
Fix some deprecations
Diffstat (limited to 'src/package.nim')
-rw-r--r-- | src/package.nim | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/package.nim b/src/package.nim index 5f31ede..5b87184 100644 --- a/src/package.nim +++ b/src/package.nim @@ -73,26 +73,26 @@ type const packageRepos: seq[PackageRepo] = @[ - (["arch", "parabola"].toSet, - ["core", "extra", "testing"].toSet, + (["arch", "parabola"].toHashSet, + ["core", "extra", "testing"].toHashSet, ("https://git.archlinux.org/svntogit/packages.git", none(string), some("packages/${BASE}"), "repos/${REPO}-${ARCH}")), - (["arch", "parabola"].toSet, - ["community", "community-testing", "multilib", "multilib-testing"].toSet, + (["arch", "parabola"].toHashSet, + ["community", "community-testing", "multilib", "multilib-testing"].toHashSet, ("https://git.archlinux.org/svntogit/community.git", none(string), some("packages/${BASE}"), "repos/${REPO}-${ARCH}")), - (["parabola"].toSet, + (["parabola"].toHashSet, ["libre", "libre-testing", "libre-multilib", "libre-multilib-testing", "nonprism", "nonprism-testing", "nonprism-multilib", "nonprism-multilib-testing", - "pcr", "pcr-testing", "pcr-multilib", "pcr-multilib-testing"].toSet, + "pcr", "pcr-testing", "pcr-multilib", "pcr-multilib-testing"].toHashSet, ("https://git.parabola.nu/abslibre.git", some("parabola"), none(string), "${REPO}/${BASE}")) ] static: # test only single match available - let osSet = lc[x | (r <- packageRepos, x <- r.os), string].toSet - let repoSet = lc[x | (r <- packageRepos, x <- r.repo), string].toSet + let osSet = lc[x | (r <- packageRepos, x <- r.os), string].toHashSet + let repoSet = lc[x | (r <- packageRepos, x <- r.repo), string].toHashSet for os in osSet: for repo in repoSet: let osValue = os |