From 90d4c4be3bc15b2f594a0046c07b6f8654659ad5 Mon Sep 17 00:00:00 2001 From: kitsunyan Date: Fri, 20 Dec 2019 07:35:07 +0300 Subject: Add Nim 1.0 support --- src/package.nim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/package.nim') diff --git a/src/package.nim b/src/package.nim index 0534234..5f31ede 100644 --- a/src/package.nim +++ b/src/package.nim @@ -1,5 +1,5 @@ import - future, options, os, re, sequtils, sets, strutils, tables, utils, + options, os, re, sequtils, sets, strutils, sugar, tables, utils, "wrapper/alpm" type @@ -98,7 +98,7 @@ static: let osValue = os let repoValue = repo if packageRepos.filter(pr => osValue in pr.os and repoValue in pr.repo).len >= 2: - raise newException(SystemError, + raise newException(CatchableError, "only single matching repo available: " & os & ":" & repo) # test unique url <> bareName links @@ -111,9 +111,9 @@ static: for x1, x2 in m1: try: if m2[x2] != x1: - raise newException(SystemError, "") + raise newException(CatchableError, "") except: - raise newException(SystemError, "Invalid url <> bareName links") + raise newException(CatchableError, "Invalid url <> bareName links") testBareNamesAndUrls(bareNameToUrl, urlToBareName) testBareNamesAndUrls(urlToBareName, bareNameToUrl) -- cgit v1.2.3-70-g09d2