diff options
author | kitsunyan | 2019-12-20 04:35:07 +0000 |
---|---|---|
committer | kitsunyan | 2019-12-20 04:35:07 +0000 |
commit | 90d4c4be3bc15b2f594a0046c07b6f8654659ad5 (patch) | |
tree | 89a79ffa58b086e5211473bb8633f5344e39000f /src/package.nim | |
parent | a25e544b717edab821779b4e7d978e8bf24debcb (diff) |
Add Nim 1.0 support
Diffstat (limited to 'src/package.nim')
-rw-r--r-- | src/package.nim | 8 |
1 files changed, 4 insertions, 4 deletions
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) |