Fixed nimble path
This commit is contained in:
parent
2b9215256b
commit
d00f59708a
1 changed files with 2 additions and 2 deletions
|
|
@ -625,7 +625,7 @@ proc listPaths(options: Options) =
|
||||||
var installed: seq[VersionAndPath] = @[]
|
var installed: seq[VersionAndPath] = @[]
|
||||||
# There may be several, list all available ones and sort by version.
|
# There may be several, list all available ones and sort by version.
|
||||||
for kind, path in walkDir(options.getPkgsDir):
|
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
|
continue
|
||||||
|
|
||||||
var nimbleFile = findNimbleFile(path, false)
|
var nimbleFile = findNimbleFile(path, false)
|
||||||
|
|
@ -634,7 +634,7 @@ proc listPaths(options: Options) =
|
||||||
var v: VersionAndPath
|
var v: VersionAndPath
|
||||||
v.version = newVersion(pkgInfo.specialVersion)
|
v.version = newVersion(pkgInfo.specialVersion)
|
||||||
v.path = pkgInfo.getRealDir()
|
v.path = pkgInfo.getRealDir()
|
||||||
installed = @[v]
|
installed.add(v)
|
||||||
else:
|
else:
|
||||||
display("Warning:", "No .nimble file found for " & path, Warning,
|
display("Warning:", "No .nimble file found for " & path, Warning,
|
||||||
MediumPriority)
|
MediumPriority)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue