diff options
Diffstat (limited to 'src/package.nim')
-rw-r--r-- | src/package.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/package.nim b/src/package.nim index 32bc801..c3ab6f4 100644 --- a/src/package.nim +++ b/src/package.nim @@ -157,7 +157,7 @@ proc isProvidedBy*(package: PackageReference, by: PackageReference): bool = true else: let lcon = package.constraint.unsafeGet - let rcon = package.constraint.unsafeGet + let rcon = by.constraint.unsafeGet let cmp = vercmp(lcon.version, rcon.version) checkConstraints(lcon.operation, rcon.operation, cmp) else: @@ -228,7 +228,7 @@ proc parseSrcInfoName(repo: string, name: string, baseIndex: int, baseCount: int else: (none(string), name) - if workName.match(re"([^><=]*)\ *(>|<|=|>=|<=)\ *([^ ]*)", matches): + if workName.match(re"([^><=]*)\ *(=|>=|<=|>|<)\ *([^ ]*)", matches): let constraints = toSeq(enumerate[ConstraintOperation]()) let index = constraints.map(s => $s).find(matches[1]) |