Fix installation (default output dir changed).

This commit is contained in:
Dominik Picheta 2015-06-04 18:33:38 +01:00
commit 4ffcdf141e
2 changed files with 7 additions and 7 deletions

View file

@ -329,13 +329,12 @@ proc getRealDir*(pkgInfo: PackageInfo): string =
else:
result = pkgInfo.mypath.splitFile.dir
proc getOutputOption*(pkgInfo: PackageInfo, bin: string): string =
## Returns an output option for the nim compiler if a build directory
## has been set.
proc getOutputDir*(pkgInfo: PackageInfo, bin: string): string =
## Returns a binary output dir for the package.
if pkgInfo.binDir != "":
result = " -o:\"" & pkgInfo.mypath.splitFile.dir / pkgInfo.binDir / bin & "\""
result = pkgInfo.mypath.splitFile.dir / pkgInfo.binDir / bin
else:
result = " -o:\"" & pkgInfo.mypath.splitFile.dir / bin & "\""
result = pkgInfo.mypath.splitFile.dir / bin
proc getNameVersion*(pkgpath: string): tuple[name, version: string] =
## Splits ``pkgpath`` in the format ``/home/user/.nimble/pkgs/package-0.1``