Fixes #313. Fixes #314. Binary packages installation issues fixed.

This commit is contained in:
Dominik Picheta 2017-01-10 23:53:46 +01:00
commit 69efef5f4b

View file

@ -447,7 +447,6 @@ proc installFromDir(dir: string, requestedVer: VersionRange, options: Options,
let dest = changeRoot(pkgInfo.myPath.splitFile.dir, pkgDestDir,
pkgInfo.myPath)
filesInstalled.incl copyFileD(pkgInfo.myPath, dest)
pkgInfo.myPath = dest
var binariesInstalled = initSet[string]()
if pkgInfo.bin.len > 0:
@ -523,6 +522,7 @@ proc installFromDir(dir: string, requestedVer: VersionRange, options: Options,
result.paths.add pkgDestDir
result.pkg = pkgInfo
result.pkg.isInstalled = true
result.pkg.myPath = dest
display("Success:", pkgInfo.name & " installed successfully.",
Success, HighPriority)