From d00f59708a532a9c841361b325b2654cf36798b6 Mon Sep 17 00:00:00 2001 From: Yuriy Glukhov Date: Tue, 30 Jan 2018 17:01:31 +0200 Subject: [PATCH] Fixed nimble path --- src/nimble.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nimble.nim b/src/nimble.nim index a6d52ab..407b207 100644 --- a/src/nimble.nim +++ b/src/nimble.nim @@ -625,7 +625,7 @@ proc listPaths(options: Options) = var installed: seq[VersionAndPath] = @[] # There may be several, list all available ones and sort by version. for kind, path in walkDir(options.getPkgsDir): - if kind != pcDir or not path.startsWith(options.getPkgsDir / name): + if kind != pcDir or not path.startsWith(options.getPkgsDir / name & "-"): continue var nimbleFile = findNimbleFile(path, false) @@ -634,7 +634,7 @@ proc listPaths(options: Options) = var v: VersionAndPath v.version = newVersion(pkgInfo.specialVersion) v.path = pkgInfo.getRealDir() - installed = @[v] + installed.add(v) else: display("Warning:", "No .nimble file found for " & path, Warning, MediumPriority)