Fixes symlink installation issue

This commit is contained in:
Yuriy Glukhov 2016-02-14 21:13:02 +02:00
commit 2de92a8230

View file

@ -413,7 +413,7 @@ proc installFromDir(dir: string, latest: bool, options: Options,
when defined(unix):
# TODO: Verify that we are removing an old bin of this package, not
# some other package's binary!
if existsFile(binDir / bin): removeFile(binDir / cleanBin)
if existsFile(binDir / cleanBin): removeFile(binDir / cleanBin)
echo("Creating symlink: ", pkgDestDir / bin, " -> ", binDir / cleanBin)
createSymlink(pkgDestDir / bin, binDir / cleanBin)
elif defined(windows):